Skip to content

Commit

Permalink
Fixing double CORS header issue
Browse files Browse the repository at this point in the history
  • Loading branch information
glenrobson committed Aug 17, 2022
1 parent e72caa7 commit 5e46e97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion image_server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ RUN chown -R root:apprun /var/www/iipsrv/cgi-bin/* && chmod 774 /var/www/iipsrv/
# ---- For split packages, cut here ----

ENV ALLOW_UPSCALING 0
ENV CORS "*"
ENV LOGFILE "/dev/stdout"
ENV URI_MAP "iiif=>IIIF"
ENV MAX_IMAGE_CACHE_SIZE "0"
Expand Down
4 changes: 2 additions & 2 deletions image_server/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ http {

include /etc/nginx/fastcgi_params;

add_header 'Access-Control-Allow-Origin' '*';

location / {
fastcgi_pass localhost:9000;
fastcgi_param PATH_INFO $fastcgi_script_name;
Expand All @@ -37,6 +35,8 @@ http {
fastcgi_param SERVER_PROTOCOL $server_protocol;
fastcgi_param REQUEST_URI $request_uri;
fastcgi_param HTTPS $https if_not_empty;
proxy_hide_header Access-Control-Allow-Origin;
add_header Access-Control-Allow-Origin '*';
}
}

Expand Down

0 comments on commit 5e46e97

Please sign in to comment.