Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[jhipster-sample-app-websocket] Websocket tracker not working #24722

Closed
1 task done
duongxinh2003 opened this issue Jan 2, 2024 · 2 comments
Closed
1 task done

[jhipster-sample-app-websocket] Websocket tracker not working #24722

duongxinh2003 opened this issue Jan 2, 2024 · 2 comments

Comments

@duongxinh2003
Copy link

duongxinh2003 commented Jan 2, 2024

Overview of the issue

Websocket demo app throws 403 Forbidden

Motivation for or Use Case

Run for example of Spring security WebSocket

Reproduce the error

Clone source code from repository jhipster-sample-app-websocket

  1. Run npm install to get dependencies
  2. Run Backend by command line ./mvnw
  3. Run Frontend by command line npm start
    When login page http://localhost:9000/ and then checking Devtools -> Network tab, an error occurred when calling Websocket:
    http://localhost:9000/websocket/tracker/info?t=1704189156457 (403 Fobidden)
image
Related issues
Suggest a Fix
JHipster Version(s)

8.1.0

JHipster configuration
Entity configuration(s) entityName.json files generated in the .jhipster directory
Browsers and Operating System
  • Checking this box is mandatory (this is just to show you read everything)
@mshima
Copy link
Member

mshima commented Jan 2, 2024

As stated in the message authentication is required.
Websocket implementation uses sockjs and requires the authorization token to be passed through headers.
The sample implementation is available at admin/tracker.

@duongxinh2003
Copy link
Author

Thanks!

@deepu105 deepu105 added this to the 8.2.0 milestone Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants