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

New cookies sent overwrite ones set in configuration #13

Closed
leenelc opened this issue Oct 24, 2018 · 3 comments
Closed

New cookies sent overwrite ones set in configuration #13

leenelc opened this issue Oct 24, 2018 · 3 comments

Comments

@leenelc
Copy link

leenelc commented Oct 24, 2018

Whenever the cometd server sets the bayeux browser cookie on handshake, the original cookie set in cometd.configure({requestHeaders:{}}) gets overwritten...
Is there a way I can change this?

@sbordet
Copy link
Member

sbordet commented Oct 24, 2018

Can you please detail?
What exact cookie do you set in the requestHeaders, what other cookies are involved, what you see on the server side and what instead you would like to happen.

@leenelc
Copy link
Author

leenelc commented Oct 25, 2018

When configuring the cometd client using,
cometd.configure({
url: 'http://localhost:5001',
requestHeaders: {"cookie": "mycookie=cookie"}
});
I set a cookie using request headers...
However, upon establishing the handshake, the cometDServer sets the BAYEUX_BROWSER cookie.
I want both cookies to remain in the subsequent requests sent to the cometDServer.

@sbordet
Copy link
Member

sbordet commented Oct 25, 2018

@leenelc are you able to try the new code and see if it fixed the issue for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants