mirror of
https://github.com/withastro/astro.git
synced 2025-03-17 23:11:29 -05:00
[docs] updates security.checkOrigin config reference (#11117)
This commit is contained in:
parent
7be7b1a757
commit
5cb68d8126
1 changed files with 2 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue