From 7c332ef5541ebb84b68a0cab124b4f33d6e61f83 Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Wed, 21 Jul 2021 12:14:02 +0200 Subject: [PATCH] use http_origin as origin for all requests --- vendor/docker/webapp.conf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vendor/docker/webapp.conf b/vendor/docker/webapp.conf index 694a11f84..ac32cd2b7 100644 --- a/vendor/docker/webapp.conf +++ b/vendor/docker/webapp.conf @@ -13,10 +13,10 @@ server { location / { # enable CORS - set $cors ''; - if ($http_origin ~* 'https?://(localhost:3000|localhost:4200|doi.stage.datacite.org|commons.stage.datacite.org|doi.datacite.org|commons.datacite.org)') { - set $cors 'true'; - } + set $cors 'true'; + # if ($http_origin ~* 'https?://(localhost:3000|localhost:4200|doi.stage.datacite.org|commons.stage.datacite.org|doi.datacite.org|commons.datacite.org)') { + # set $cors 'true'; + # } # always is required to add headers even if response's status is 4xx or 5xx if ($cors = 'true') {