We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Unable to set cookies when receiving websocket connection
There should be a way to set cookies before doing the websocket upgrade.
ServerWebSocket.headers is available to read cookie. But it is not possible to set it?
ServerWebSocket.headers
Tried creating a router:
// HTTP CONFIGURATION router = Router.router(vertx) router.route().handler(::requestInterceptor)
requestInterceptor is never triggered.
The text was updated successfully, but these errors were encountered:
If you implement a route handler like this:
@Override public void handle(RoutingContext rc) { rc.addHeadersEndHandler(v -> rc.response().addCookie(myCookie)); rc.next(); }
The set-cookie header should be sent
Sorry, something went wrong.
No branches or pull requests
Unable to set cookies when receiving websocket connection
There should be a way to set cookies before doing the websocket upgrade.
ServerWebSocket.headers
is available to read cookie. But it is not possible to set it?Tried creating a router:
requestInterceptor is never triggered.
The text was updated successfully, but these errors were encountered: