From 0140e7096741b3bd130657b92d56ac3e1fc76d6b Mon Sep 17 00:00:00 2001 From: William Petit Date: Wed, 19 Feb 2020 11:51:51 +0100 Subject: [PATCH] Ajout CORS backend --- misc/containers/backend/env.local | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/misc/containers/backend/env.local b/misc/containers/backend/env.local index 9003097..642e004 100644 --- a/misc/containers/backend/env.local +++ b/misc/containers/backend/env.local @@ -1,2 +1,3 @@ TRUSTED_HOSTS='^(localhost|127.0.0.1)$' -DATABASE_URL=mysql://logo:logo@database:3306/logo?server_version=mariadb-10.4.12 \ No newline at end of file +DATABASE_URL=mysql://logo:logo@database:3306/logo?server_version=mariadb-10.4.12 +CORS_ALLOW_ORIGIN=^https?://(localhost|127\.0\.0\.1)(:[0-9]+)?$ \ No newline at end of file