-
Notifications
You must be signed in to change notification settings - Fork 803
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
🐛 BUG: Origin
header is ignored in 3.25.0 - 3.27.0 versions
#4849
Comments
This should have been fixed in #4812 —could you check if the latest version of Wrangler exhibits the bug? |
@penalosa it looks like it. I stumbled on this issue because I'm having a similar error: I have a React frontend that is making a request to a worker. The I'm having trouble figuring out why the I will also comment on that PR, since it may be a more appropriate place to ask this question! |
Hey Somhairle, I never had the issue before so I'm not sure about #4812. I can confirm it's still an issue in 3.26.0. I had to downgrade to 3.24.0 again. I will make a repro today. |
I'm experiencing this same issue with versions |
Okay, so I made a mistake regarding The example: https://github.com/flexchar/workers-sdk-issue-4849 |
Origin
header is ignored in 3.25.0 - 3.27.0 versions
I confirm it works as expected, @petebacondarwin. 🤝 |
Great! If it's OK I'll close this PR as done and you can expect this to be generally available in the release tomorrow. |
Which Cloudflare product(s) does this pertain to?
Workers Runtime
What version(s) of the tool(s) are you using?
3.25.0
What version of Node are you using?
21.5.0
What operating system are you using?
Mac
Describe the Bug
After upgrading to 3.25.0,
Origin
header is ignored. Downgrading works as expected.I have a check that worker must NOT respond unless requests come from my whitelisted domain (think of the hot link protection offered by Cloudflare for images). I noticed that after upgrade those headers never make to my worker.
I use Hono and Postman.
I hope there's a clear indication of how the bug was born - if not, please let me know! I will create a tiny reproduction repo. ✌️
Please provide a link to a minimal reproduction
https://github.com/flexchar/workers-sdk-issue-4849
Please provide any relevant error logs
No error logs appear.
The text was updated successfully, but these errors were encountered: