Skip to content

Commit

Permalink
autofix
Browse files Browse the repository at this point in the history
  • Loading branch information
ahpaleus committed Jan 16, 2024
1 parent cb4a668 commit 57a03c3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions javascript/apollo-graphql/v4-csrf-prevention.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ rules:
description: "CSRF protection disabled"
references:
- https://www.apollographql.com/docs/apollo-server/v3/security/cors/#preventing-cross-site-request-forgery-csrf
fix-regex:
regex: 'csrfPrevention:\s*false'
replacement: 'csrfPrevention: true'

patterns:
- pattern: |
Expand Down

0 comments on commit 57a03c3

Please sign in to comment.