Add CORS template check inside location for externalAuth.SignURL (#8814)
* Add CORS template check inside location for externalAuth.SignURL * Add testcase for CORS header for auth-signin redirect with CORS enabled.
This commit is contained in:
parent
8c4cd879e3
commit
d1af3b5cca
2 changed files with 49 additions and 0 deletions
|
|
@ -1180,6 +1180,10 @@ stream {
|
|||
|
||||
add_header Set-Cookie $auth_cookie;
|
||||
|
||||
{{ if $location.CorsConfig.CorsEnabled }}
|
||||
{{ template "CORS" $location }}
|
||||
{{ end }}
|
||||
|
||||
# Ensure that modsecurity will not run on an internal location as this is not accessible from outside
|
||||
{{ if $all.Cfg.EnableModsecurity }}
|
||||
modsecurity off;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue