From 251d6590cf81f2135ce36ce93930e59493c1a7ae Mon Sep 17 00:00:00 2001 From: Revant Nandgaonkar Date: Mon, 6 Jul 2020 14:44:07 +0530 Subject: [PATCH] fix: nginx config use $scheme://$http_host instead of $http_referer fixes socketio --- build/common/nginx-default.conf.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/common/nginx-default.conf.template b/build/common/nginx-default.conf.template index a50571ab..09575391 100644 --- a/build/common/nginx-default.conf.template +++ b/build/common/nginx-default.conf.template @@ -30,7 +30,7 @@ server { proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header X-Frappe-Site-Name $host; - proxy_set_header Origin $http_referer; + proxy_set_header Origin $scheme://$http_host; proxy_set_header Host $http_host; proxy_pass http://socketio-server;