From ce6398e10fd0ebab01dc5734cd88554246fe1057 Mon Sep 17 00:00:00 2001 From: Pratik Vyas Date: Sat, 24 Oct 2015 20:56:35 -0700 Subject: [PATCH] Fix origin header for socketio --- bench/templates/nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bench/templates/nginx.conf b/bench/templates/nginx.conf index 31e2af20..068fc101 100644 --- a/bench/templates/nginx.conf +++ b/bench/templates/nginx.conf @@ -31,7 +31,7 @@ upstream socketio-server { {% if not dns_multitenant %} proxy_set_header X-Frappe-Site-Name {{ site.name }}; {% endif %} - proxy_set_header Origin $http_host; + proxy_set_header Origin $scheme://$http_host; proxy_set_header Host $host; }