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:
Sjouke de Vries 2024-03-03 11:41:05 +01:00
parent 683105ebdc
commit ab5c6eb265
No known key found for this signature in database
GPG key ID: A88A57C9C615BACF

View file

@ -942,6 +942,7 @@ stream {
{{/* CORS support from https://michielkalkman.com/snippets/nginx-cors-open-configuration.html */}}
{{ define "CORS" }}
set $cors 'true';
{{ $cors := .CorsConfig }}
# Cors Preflight methods needs additional options and different Return Code
{{ if $cors.CorsAllowOrigin }}