Allow any origin for permissive headers

merge-requests/30/head
Bob Mottram 2021-08-13 11:00:39 +01:00
parent 9c6db7be11
commit 5278d8c946
1 changed files with 1 additions and 0 deletions

View File

@ -690,6 +690,7 @@ class PubServer(BaseHTTPRequestHandler):
self.send_header('Content-Length', str(length)) self.send_header('Content-Length', str(length))
self.send_header('Host', callingDomain) self.send_header('Host', callingDomain)
if permissive: if permissive:
self.send_header('Access-Control-Allow-Origin', '*')
return return
if cookie: if cookie:
cookieStr = cookie cookieStr = cookie