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

problem with cookies #84

Open
plandem opened this issue Jun 9, 2016 · 0 comments
Open

problem with cookies #84

plandem opened this issue Jun 9, 2016 · 0 comments

Comments

@plandem
Copy link

plandem commented Jun 9, 2016

I see at Chrome Developer set-cookie in header, but it never set. I suppose problem is with host or some CROS problems.

my proxy config is quite simple:

module.exports = {
 '/api/syncapi/(.*)': 'http://luxms-web.local/;/syncapi/1.5',
};

that's request headers:

Accept:*/*
Accept-Encoding:gzip, deflate
Accept-Language:en-US,en;q=0.8,ru;q=0.6
Connection:keep-alive
Content-Length:48
content-type:application/x-www-form-urlencoded
Host:localhost:8989
Origin:http://localhost:8001
Referer:http://localhost:8001/
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36

and that's response headers:

access-control-allow-origin:*
connection:keep-alive
content-type:application/json; charset=utf-8
date:Thu, 09 Jun 2016 10:19:00 GMT
elapsed-time:0.053905010223389
server:nginx/1.8.0
set-cookie:BI-User-Session=48f3c32a-1453-445d-be0c-7ac89cbb566d; expires=Fri, 10 Jun 2016 10:19:38 GMT; path=/;
Transfer-Encoding:chunked
x-nginx-lua-version:10003

can you help me with setting up proxy to process cookies?

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

1 participant