Skip to content

Potential problems with HTTP OPTIONS? #102

Open
@paulbastian

Description

@paulbastian

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions