Skip to content

Use sec-fetch-site for socket transports #6785

Description

@josevalim

The Sec-Fetch-Site header will allow us to validate the origin in a cleaner way. Also, because the clients to the transports are fewer, we can simply enforce the field to be set.

The question is which API we will want to be set. One option is to do check_origin: :sec_fetch_site, but since :sec_fetch_site itself has a few options, that's may become cumbersome. Another option is to introduce another keyword altogether. When this keyword is given, it disables check_origin and check_csrf (unless those are explicitly given).

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