Browse Source

submit-server: set allow control origin

Moritz Warning 1 month ago
parent
commit
06502da4ee
1 changed files with 1 additions and 1 deletions
  1. 1 1
      submit-server.py

+ 1 - 1
submit-server.py

@@ -127,7 +127,7 @@ class MyHandler(http.server.BaseHTTPRequestHandler):
     def do_OPTIONS(self):
         self.send_response(200, "ok")
         self.send_header('Access-Control-Allow-Credentials', 'false')
-        self.send_header('Access-Control-Allow-Origin', '*')
+        self.send_header('Access-Control-Allow-Origin', 'https://mwarning.github.io')
         self.send_header('Access-Control-Allow-Methods', 'GET, POST, OPTIONS')
         self.send_header('Access-Control-Allow-Headers', '*')