From ba705329282a417bdbbfb458ba3179ec3ed7de7d Mon Sep 17 00:00:00 2001 From: Mikhail Date: Thu, 11 May 2023 16:10:17 +0000 Subject: [PATCH] Update 2 files - /default.conf - /.gitlab-ci.yml --- .gitlab-ci.yml | 2 +- default.conf | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 94a2721..9bfb731 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -19,7 +19,7 @@ clear-old-images: entrypoint: [""] before_script: - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - - docker images + - docker image ls script: - docker system prune -af build-app: diff --git a/default.conf b/default.conf index 14be44d..4f055ad 100644 --- a/default.conf +++ b/default.conf @@ -39,9 +39,10 @@ server { } location /heruvym/ { - #add_header Access-Control-Allow-Origin $http_origin always; + add_header Access-Control-Allow-Origin $http_origin always; add_header Access-Control-Allow-Credentials true always; add_header Access-Control-Allow-Headers content-type,authorization always; + add_header Access-Control-Allow-Methods OPTINOS, GET, POST, PATCH, PUT, DELETE; proxy_set_header Referer $host; proxy_set_header Origin $http_origin; proxy_set_header Connection '';