mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-04 01:09:36 +02:00
add cors_allow_preflight option to route policy
This commit is contained in:
parent
c18f7d89ae
commit
45bb2e0a4d
8 changed files with 146 additions and 58 deletions
|
@ -26,6 +26,10 @@ type Policy struct {
|
|||
|
||||
Source *url.URL
|
||||
Destination *url.URL
|
||||
|
||||
// Allow unauthenticated HTTP OPTIONS requests as per the CORS spec
|
||||
// https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Preflighted_requests
|
||||
CORSAllowPreflight bool `yaml:"cors_allow_preflight"`
|
||||
}
|
||||
|
||||
func (p *Policy) validate() (err error) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue