Skip to content
New issue

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

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

Already on GitHub? # to your account

CORS and multiple origin #76

Open
rom1504 opened this issue May 23, 2017 · 3 comments
Open

CORS and multiple origin #76

rom1504 opened this issue May 23, 2017 · 3 comments

Comments

@rom1504
Copy link
Member

rom1504 commented May 23, 2017

I've been having a problem in camomile-polymer-client when accessing the server from a second origin.
It seems the browser remembers the first origin, which then doesn't match the Access-Control-Allow-Origin header.

I believe this is related to that line of code

origin: true,

https://www.npmjs.com/package/cors#configuration-options explains the available options for cors

It might be possible to change something there to make it work for several origin.

@hbredin
Copy link
Member

hbredin commented May 23, 2017

Hmmmmm. Strange. Isn't it a problem with the JavaScript client, then?

@hbredin
Copy link
Member

hbredin commented May 23, 2017

@rom1504
Copy link
Member Author

rom1504 commented May 23, 2017

The master branch of camomile-client-javascript isn't up to date, the develop branch is up to date.
It might be a problem in the javascript client but there's nothing mentioning the origin so I'm not sure.
Maybe something inside the http api used in the client is sending the previous origin by default.

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

No branches or pull requests

2 participants