Skip to content

Feature request: integrate with Access-Control-Allow-Credentials header #32

@cfredric

Description

@cfredric

In the CORS protocol, the Access-Control-Allow-Credentials header is a way for the server to explicitly opt into allowing the browser to send a credentialed request (from a given origin, the one named in the Access-Control-Allow-Origin header).

This is the same as the purpose of the Activate-Storage-Access: retry; allowed-origin="..." header in the SAH protocol; the only difference is that SAH does not require use of the 'cors' request mode.

However, if a user grants the storage-access permission and then sends a CORS-enabled non-simple request that requires credentials, that request will require both a CORS preflight and a subsequent use of the Activate-Storage-Access: retry; ... header.

We could elide the second round trip by allowing the browser to activate the storage-access permission (thereby attaching cookies to the request) after the CORS preflight.

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