mirror of https://github.com/morpheus65535/bazarr
Fix for CORS.
This commit is contained in:
parent
6cf1bd5b9d
commit
184b4504d7
|
@ -146,7 +146,8 @@ def post_get(name, default=''):
|
|||
|
||||
@hook('before_request')
|
||||
def enable_cors():
|
||||
response.headers['Access-Control-Allow-Origin'] = '*'
|
||||
if response:
|
||||
response.headers['Access-Control-Allow-Origin'] = '*'
|
||||
|
||||
|
||||
@route(base_url + 'login')
|
||||
|
|
Loading…
Reference in New Issue