Skip to content

CSRF and XSS protection#59

Merged
FluxCapacitor2 merged 5 commits into
mainfrom
csrf-xss
May 7, 2026
Merged

CSRF and XSS protection#59
FluxCapacitor2 merged 5 commits into
mainfrom
csrf-xss

Conversation

@skkra0

@skkra0 skkra0 commented Apr 30, 2026

Copy link
Copy Markdown
Collaborator
  • Configure CSP settings
  • Add CSRF tokens on mutations

skkra0 and others added 5 commits April 30, 2026 11:50
Customize content-security-policy header
Verify the origin or referer on state changes, failing if not present
Transmit in /user/me
Send back in X-CSRF-Token
It looks like these were meant for a separate PR?
@FluxCapacitor2
FluxCapacitor2 marked this pull request as ready for review May 7, 2026 06:37

@FluxCapacitor2 FluxCapacitor2 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just tested on staging. I can see the CSP header, and the CSRF token validation works as expected.

@FluxCapacitor2
FluxCapacitor2 merged commit dec4b4f into main May 7, 2026
4 checks passed
@FluxCapacitor2
FluxCapacitor2 deleted the csrf-xss branch May 7, 2026 06:39
FluxCapacitor2 added a commit that referenced this pull request May 9, 2026
* XSS protections
Customize content-security-policy header
Verify the origin or referer on state changes, failing if not present

* Create CSRF token per session
Transmit in /user/me
Send back in X-CSRF-Token

* Fix lint

* Revert create app form changes

It looks like these were meant for a separate PR?

---------

Co-authored-by: FluxCapacitor2 <31071265+FluxCapacitor2@users.noreply.github.com>
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

Successfully merging this pull request may close these issues.

2 participants