update cors
This commit is contained in:
parent
6520e9ef50
commit
0ea2ca744a
@ -71,7 +71,7 @@ def get_config_form(mdl):
|
|||||||
class AllowCORSMixin(object):
|
class AllowCORSMixin(object):
|
||||||
def add_access_control_headers(self, response):
|
def add_access_control_headers(self, response):
|
||||||
response["Access-Control-Allow-Origin"] = "*"
|
response["Access-Control-Allow-Origin"] = "*"
|
||||||
response["Access-Control-Allow-Methods"] = "GET, OPTIONS"
|
response["Access-Control-Allow-Methods"] = "GET, POST, OPTIONS"
|
||||||
response["Access-Control-Max-Age"] = "1000"
|
response["Access-Control-Max-Age"] = "1000"
|
||||||
response["Access-Control-Allow-Headers"] = "X-Requested-With, Content-Type"
|
response["Access-Control-Allow-Headers"] = "X-Requested-With, Content-Type"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user