0
Fork 0
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:
Sarah Rainsberger 2024-05-22 09:53:58 -03:00 committed by GitHub
parent 7be7b1a757
commit 5cb68d8126
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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.