Skip to content

Require pre-flighted requests #50283

Open

Description

@ojeytonwilliams

As an extra layer of security, we can reject simple requests, by requiring a custom header.

This means that requests have to send preflight requests and, if they fail, the real request is never sent. Without this the server will still process the requests which could trigger side-effects (e.g. interact with the DB).


Implementation-wise this is pretty easy: we'd just need to add onRequest hooks to the routes we want to protect.

Activity

  1. added this to the Backend API MVP milestone on Aug 17, 2023
  2. vaibh27 commented on Sep 2, 2023

    @vaibh27

    @raisedadead, I would like to contribute on this issue.
    Let me know where to start.
    Thanks

  3. dbarnwal commented on Oct 15, 2023

    @dbarnwal

    Can contribute on this. When can i begin ?

  4. added
    platform: api
    on Mar 19, 2024
  5. anishlukk123 commented on Feb 16, 2025

    @anishlukk123
    Contributor

    @ojeytonwilliams help me understand the marningal benfits of adding this, as it seeme like this is a nice to have since the ticket is been open a over a year.

  6. added
    status: on the roadmap
    on Nov 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    platform: apistatus: on the roadmap

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions