bee
bee copied to clipboard
Etag makes the browser cache CORS headers?!
Context
cors-allowed-origins: ["*"]
Summary
I previously ran a dApp on :5174
. Now I am running it on :5173
. GET /bytes/{...}
(and probably others, too) requests fail because apparently CORS header is for :5174
:
Access to XMLHttpRequest at 'http://localhost:1633/bytes/<snip>'
from origin 'http://localhost:5173' has been blocked by CORS policy:
The 'Access-Control-Allow-Origin' header has a value 'http://localhost:5174'...
I disabled etag
in bzz.go
and that solved my problem.
Expected behavior
If I access a resource in one dApp, it should not block that resource from other dApps, running on different ports.