plugins/mod_websocket.lua
branch0.12
changeset 12448 b33558969b3e
parent 12267 168970ce8543
child 12898 0598d822614f
--- a/plugins/mod_websocket.lua	Mon Mar 28 14:40:21 2022 +0100
+++ b/plugins/mod_websocket.lua	Mon Mar 28 14:53:24 2022 +0100
@@ -355,6 +355,9 @@
 	module:provides("http", {
 		name = "websocket";
 		default_path = "xmpp-websocket";
+		cors = {
+			enabled = true;
+		};
 		route = {
 			["GET"] = handle_request;
 			["GET /"] = handle_request;