fix(nginx.tmpl): set $cors to true so that the Access-Control-* headers will be added
Signed-off-by: Sjouke de Vries <info@sdvservices.nl>
This commit is contained in:
parent
683105ebdc
commit
ab5c6eb265
1 changed files with 1 additions and 0 deletions
|
@ -942,6 +942,7 @@ stream {
|
||||||
|
|
||||||
{{/* CORS support from https://michielkalkman.com/snippets/nginx-cors-open-configuration.html */}}
|
{{/* CORS support from https://michielkalkman.com/snippets/nginx-cors-open-configuration.html */}}
|
||||||
{{ define "CORS" }}
|
{{ define "CORS" }}
|
||||||
|
set $cors 'true';
|
||||||
{{ $cors := .CorsConfig }}
|
{{ $cors := .CorsConfig }}
|
||||||
# Cors Preflight methods needs additional options and different Return Code
|
# Cors Preflight methods needs additional options and different Return Code
|
||||||
{{ if $cors.CorsAllowOrigin }}
|
{{ if $cors.CorsAllowOrigin }}
|
||||||
|
|
Loading…
Reference in a new issue