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

cookie无法读取 #269

Closed
zhang8h opened this issue Jun 20, 2018 · 6 comments
Closed

cookie无法读取 #269

zhang8h opened this issue Jun 20, 2018 · 6 comments

Comments

@zhang8h
Copy link

zhang8h commented Jun 20, 2018

获取cookie一直报错:

http: named cookie not present

@shen100
Copy link
Owner

shen100 commented Jun 30, 2018

请详细描述问题

@zhang8h
Copy link
Author

zhang8h commented Jul 5, 2018

@shen100 同时支持http 和https吗

@danmingyang
Copy link

我也是,一直搞不懂,我是用的https,但是nginx转发到了http://127.0.0.1:8000,不知道是什么因为的

@zhang8h
Copy link
Author

zhang8h commented Oct 1, 2018

我换成其他形式做登录验证了,他是把前后端放一个域名下了,所以可以去到cookie

@danmingyang
Copy link

我刚验证了,如果用楼主的nginx配置,前端和服务器在一个服务器上,没有这个错误了

@shen100
Copy link
Owner

shen100 commented Nov 22, 2019

重构了,新版已发布
https://www.golang123.com

@shen100 shen100 closed this as completed Nov 22, 2019
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

3 participants