I followed this guide https://help.pythonanywhere.com/pages/EmbeddedConsoles/ but keep having issue "Sorry, you must have cookies enabled to use this site.". Does anyone have similar issue and how do you solve it?
I followed this guide https://help.pythonanywhere.com/pages/EmbeddedConsoles/ but keep having issue "Sorry, you must have cookies enabled to use this site.". Does anyone have similar issue and how do you solve it?
Can someone take a look on this please? Looks like the document was created so long ago and no longer accurate.
Those instructions still work. If you're getting an error about not having cookies, perhaps your browser is blocking the cookies necessary for it to work.
Can you point me a working example using that instruction? I couldn't find one, or you can use jsfiddle or anything else to show me a working example? On other hands, can you tell me exactly what do you mean by "browser is blocking the cookies necessary"? The example on python.org works just fine for me on my browser though
It could be a side effect of some plugin in your browser.
Interesting, but the example from Python.org works for me, I assume my browser should be fine?
The setup on Python.org is a little more complicated, as it is embedded in their infrastructure and uses python.org
hostnames.
Are there any errors in your browser's developer tools console when you visit your site with the embedded console?
Nope, there is no error from console. I tried this https://jsfiddle.net/6yc27tb3/, this is the screenshot https://snipboard.io/3TDfvw.jpg
Have you tried embedding it on a site of your own? jsfiddle may be changing things under your feed in order to embed into its interface.
When you embed https://www.pythonanywhere.com/embedded3/, the request to that URL will create a temporary throwaway account on our site to run the console, and then return an HTML page which has another embedded iframe. The error that you are getting is essentially saying that the second request was made with different cookies to the original one.
yes I did tried it on my site here https://www.hocpython.io/ (FYI this site is hosted on pythonanywhere)
You have some JavaScript at the top of that page that is setting cookies; what happens if you remove that?
sorry that's was my testing. I just removed it. Still same error though
anyone? :)
Sorry for the silence! We're investigating a bit further. It's beginning to look like there might be a change in Chrome that has changed the way that they handle cookies; we'll post back when we know more.
Hello, any update? :)
Sorry for the silence again! We've worked out what the issue is and written a fix. Because it requires changes to security-related cookie handling, it needs extensive testing so it's not something we can live-patch. However, it's looking good in our integration testing so it will definitely be in the next system update. We'll post here when it's been deployed -- I've made a note so that we don't forget to do that.
Hi there, it's almost 3 months so far :) Do you think there will be a solution?
Yes, it's definitely going to be in our next system update -- however, there are some delays in getting that released due to some (unrelated) changes that have to go in at the same time. We're working on it, but no ETA yet.
Just a quick note to say that this was fixed by this morning's system update -- embedded consoles now work in Chrome again.