Skip to content

Commit

Permalink
Add cors headers (#16)
Browse files Browse the repository at this point in the history
* Add cors headers

* Add always
  • Loading branch information
raymondjacobson authored Apr 14, 2020
1 parent 435eb1d commit 1fd77f7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions nginx/nginx.template
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ http {

# Connectivity check
location /204 {
add_header 'Access-Control-Allow-Origin' '*' always;
add_header 'Access-Control-Allow-Methods' 'GET';
add_header 'Access-Control-Max-Age' 0;
add_header 'Content-Type' 'text/plain; charset=utf-8';
add_header 'Content-Length' 0;
return 204;
}
}
Expand Down

0 comments on commit 1fd77f7

Please sign in to comment.