devdocs
devdocs copied to clipboard
Get "Please enable cookies." when access from remote host.
Bug report
Hi,
I'm working on deploying devdocs on no-internet-access internal for our team. We get "Please enable cookies." when someone access devdocs service from their own PC. But, the devdocs service works well when I access it from its hosted server.
I have to say this amazing project is very useful for me and thanks for your guys' contribution.
Steps to reproduce
Just execute the command as README.
git clone https://github.com/freeCodeCamp/devdocs.git && cd devdocs
docker build -t thibaut/devdocs .
docker run --name devdocs -d -p 9292:9292 thibaut/devdocs
Then, access the service from localhost and a remote host.
You will get "Please enable cookies."
when you access from remote host and can not save preferences.
You will not get "Please enable cookies."
when you access via localhost:9292
Hewwo :3
I had the same pwoblem and could solve it by changing the Cookies JS script, nya~!
Under /assets/javascripts/vendor/cookies.js
you have to change the default options:
Cookies.defaults = {
path: "/",
//SameSite: "Strict",
//secure: true,
};
Now it should not do the fwucky wucky anymowe~ ヾ(≧へ≦)〃