kinetex - v1.0.0-rc.1
Preparing search index...
securityHeaders
Function securityHeaders
securityHeaders
(
options
?:
{
hsts
?:
boolean
|
HSTSValue
;
csp
?:
string
|
CSPDirectiveMap
;
frameOptions
?:
"DENY"
|
"SAMEORIGIN"
;
noSniff
?:
boolean
;
referrer
?:
string
;
permissions
?:
string
;
coep
?:
"require-corp"
|
"unsafe-none"
;
coop
?:
"unsafe-none"
|
"same-origin"
|
"same-origin-allow-popups"
;
corp
?:
"same-origin"
|
"same-site"
|
"cross-origin"
;
}
,
)
:
HttpHeaders
Build common security headers suitable for most web responses.
Parameters
options
:
{
hsts
?:
boolean
|
HSTSValue
;
csp
?:
string
|
CSPDirectiveMap
;
frameOptions
?:
"DENY"
|
"SAMEORIGIN"
;
noSniff
?:
boolean
;
referrer
?:
string
;
permissions
?:
string
;
coep
?:
"require-corp"
|
"unsafe-none"
;
coop
?:
"unsafe-none"
|
"same-origin"
|
"same-origin-allow-popups"
;
corp
?:
"same-origin"
|
"same-site"
|
"cross-origin"
;
}
= {}
Returns
HttpHeaders
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
GitHub
npm
JSR
kinetex - v1.0.0-rc.1
Loading...
Build common security headers suitable for most web responses.