Skip to content

Commit

Permalink
[docs] updates security.checkOrigin config reference (#11117)
Browse files Browse the repository at this point in the history
  • Loading branch information
sarah11918 committed May 22, 2024
1 parent 7be7b1a commit 5cb68d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/astro/src/@types/astro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -803,10 +803,11 @@ export interface AstroUserConfig {
*/
security?: {
/**
* @docs
* @name security.checkOrigin
* @type {boolean}
* @default 'false'
* @version 4.6.0
* @version 4.9.0
* @description
*
* When enabled, performs a check that the "origin" header, automatically passed by all modern browsers, matches the URL sent by each `Request`. This is used to provide Cross-Site Request Forgery (CSRF) protection.
Expand Down

0 comments on commit 5cb68d8

Please sign in to comment.