bee icon indicating copy to clipboard operation
bee copied to clipboard

Etag makes the browser cache CORS headers?!

Open Cafe137 opened this issue 6 months ago • 0 comments

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.

Cafe137 avatar Aug 19 '24 22:08 Cafe137