-
Notifications
You must be signed in to change notification settings - Fork 342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[2.4.0] Access-Control-Expose-Headers is overridden, breaking browser Swarm apps #4959
Comments
These are my local fixes which I can confirm work, but obviously bad quality code 🙂
|
After reviewing the problem and discussing it, here are some thoughts 1. Regarding the Delimiter (
|
I tried the branch with Etherjot, and the feed related headers can be now accessed, fixing the previous issue. |
Thank you for the feadback. |
Context
2.4.0
Summary
Access-Control-Expose-Headers is overridden, impairing browser functionality
Actual behavior
This is the line that causes the problem.
https://github.com/ethersphere/bee/blob/master/pkg/api/bzz.go#L307
Take the
/feeds/:owner/:topic
endpoint for example.additionalHeaders
is set there to allow browsers to readswarm-feed-index
,swarm-feed-index-next
. It seems that the line in bzz.go discards the previously set headers.Edit: It seems there is a second issue. The headers are joined with
;
, but it should be,
.The text was updated successfully, but these errors were encountered: