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') {