devdocs icon indicating copy to clipboard operation
devdocs copied to clipboard

Get "Please enable cookies." when access from remote host.

Open firedent opened this issue 2 years ago • 1 comments

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.

image

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

firedent avatar Sep 15 '22 06:09 firedent

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~ ヾ(≧へ≦)〃

HayateLaTech avatar Jun 17 '24 22:06 HayateLaTech