gin开发中踩过的坑
gin框架操作Cookie
坑:c.SetCookie 中的的 domain 定义成什么就要用什么访问 cookie 才会生效,例如,定义的 127.0.0.1,浏览器访问时也必须输入 127.0.0.1 才行,localhost 都不行。
1 | import ( |
- Post title:gin开发中踩过的坑
- Post author:洪笳淏
- Create time:2021-12-13 12:46:00
- Post link:https://jiahaohong1997.github.io/2021/12/13/gin开发中踩过的坑/
- Copyright Notice:All articles in this blog are licensed under BY-NC-SA unless stating additionally.
Comments