Closed duongxinh2003 closed 10 months ago
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.
Thanks!
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
npm install
to get dependencies./mvnw
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)Related issues
Suggest a Fix
JHipster Version(s)
8.1.0
JHipster configuration
Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryBrowsers and Operating System