Mode production: autorisation de toutes les requêtes CORS

This commit is contained in:
Olivier DOSSMANN 2017-10-02 11:57:17 +02:00
parent c74413e3b4
commit bb51eb68cd

View File

@ -15,5 +15,8 @@ ALLOWED_HOSTS = [os.getenv('ALLOWED_HOSTS', '*')]
# `proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;`
USE_X_FORWARDED_HOST = True
# CORS: as we only need to acces API, a regular expression is enough
# CORS: allow all site to make cross site requests
CORS_ORIGIN_ALLOW_ALL = True
# CORS: limit to API only
CORS_URLS_REGEX = r'^/api/.*$'