forked from axeman/erpnext-nix
module: Fix missing headers for websockets
Should fix error: invalid origin when using websockets
Adapted from:
70c40e2be0/resources/nginx-template.conf (L49-L50)
This commit is contained in:
parent
e74f2d0f04
commit
66e6c685d0
|
@ -313,7 +313,10 @@ in
|
||||||
file_server
|
file_server
|
||||||
}
|
}
|
||||||
handle /socket.io/* {
|
handle /socket.io/* {
|
||||||
reverse_proxy :${toString cfg.socketIoPort}
|
reverse_proxy :${toString cfg.socketIoPort} {
|
||||||
|
header_up X-Frappe-Site-Name "${cfg.domain}"
|
||||||
|
header_up Origin "{scheme}://${cfg.domain}"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
reverse_proxy :${toString cfg.webserver.bindPort}
|
reverse_proxy :${toString cfg.webserver.bindPort}
|
||||||
|
|
Loading…
Reference in a new issue