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

Potential problems with HTTP OPTIONS? #102

Open
paulbastian opened this issue Mar 18, 2025 · 0 comments
Open

Potential problems with HTTP OPTIONS? #102

paulbastian opened this issue Mar 18, 2025 · 0 comments

Comments

@paulbastian
Copy link
Collaborator

Filip Skokan at IETF 122:

A good web application framework will discern between a preflight and a non-Preflight request and give the dev an option to handle the non-preflight.

What this dance will do in a browser, since both the nonce-fetching and actual request is

  1. OPTIONS Preflight for the nonce-fetch

  2. nonce-fetch

  3. OPTIONS Preflight for the actual request

  4. actual request

The js client has no access to the preflight response so there's no option to make the preflight the nonce-value vessel. Of course at the point the actual request's preflight the nonce must be incorporated in the request.

(meetecho messed up the list formatting)

fix: since both the nonce-fetching and actual request * are not "simple" requests

see "simple requests" https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/CORS#simple_requests

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