Skip to content
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

No CORS headers (even running example) #117

Open
tennox opened this issue Nov 25, 2023 · 1 comment
Open

No CORS headers (even running example) #117

tennox opened this issue Nov 25, 2023 · 1 comment

Comments

@tennox
Copy link

tennox commented Nov 25, 2023

I'm trying to get this to work, but don't have any CORS headers in my responses.
At some point I tried the example: cargo run --example fairing in this repo, but to no avail 😢 .

Am I misunderstanding something?

❯ http GET http://localhost:8000/
HTTP/1.1 200 OK
content-length: 10
content-type: text/plain; charset=utf-8
date: Sat, 25 Nov 2023 10:10:22 GMT
permissions-policy: interest-cohort=()
server: Rocket
x-content-type-options: nosniff
x-frame-options: SAMEORIGIN

Hello CORS
@tennox
Copy link
Author

tennox commented Nov 25, 2023

Ah, my client is not sending Origin header.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant