Fix for CORS.

pull/684/head
Louis Vézina 5 years ago
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…
Cancel
Save