Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Qa test tweaks
Browse files Browse the repository at this point in the history
schroerbrian committed Mar 28, 2024
1 parent ecd6bd7 commit e4aa9ab
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docker/templates/default.conf.template
Original file line number Diff line number Diff line change
@@ -53,6 +53,15 @@ server {

location / {
# Respond to the OPTIONS preflight request
if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' 'https://qaone.sfserviceguide.org';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'X-Requested-With, Content-Type, Authorization';
add_header 'Access-Control-Allow-Credentials' 'true';
add_header 'Content-Length' '0';
add_header 'Content-Type' 'text/plain; charset=UTF-8';
return 204;
}


add_header 'Access-Control-Allow-Origin' 'https://qaone.sfserviceguide.org' always;

0 comments on commit e4aa9ab

Please sign in to comment.