I keep getting "Network error when attempting to fetch resource" when I try and log into a website
I keep getting "Network error when attempting to fetch resource" when I try and log into a website I've been on the website today and logged in without problems. Then my session ended and i had to log in again! Now i can't. try clearing cache, restarting etc www.victoriassecret.com
Thanks!
Alla svar (1)
Look at the network activity debugger in your browser, or try hitting the URL using curl -v from the terminal.
That will generally help you sort out what headers are being included.
The rule you included would only add those headers to images, not your JSON stuff, but maybe that was just an example?
FWIW, I think it’s way more natural to do this in the python code:
self.response.headers["Access-Control-Allow-Origin"] = "*"