From b40379fc1c57e57026e128e749302a9612c737fb Mon Sep 17 00:00:00 2001 From: Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> Date: Sat, 10 Sep 2022 22:36:41 +0200 Subject: [PATCH] cors lol --- nginx/nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nginx/nginx.conf b/nginx/nginx.conf index f610b1f..603f93d 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -77,7 +77,7 @@ http { if ($request_method = 'OPTIONS') { add_header 'Access-Control-Allow-Origin' 'https://hugo-chat.nilstrieb.dev'; add_header 'Access-Control-Allow-Credentials' 'true'; - add_header 'Access-Control-Allow-Methods' 'GET, POST, DELETE, PUT, OPTIONS'; + add_header 'Access-Control-Allow-Methods' 'GET, POST, DELETE, PUT, PATCH, OPTIONS'; add_header 'Access-Control-Allow-Headers' 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type'; return 204;