Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
akdasa committed Mar 24, 2023
1 parent 4c858d0 commit 3672cdf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions endpoints.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ location / {
}

if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Headers' '*';
add_header 'Content-Length' 0;
return 204;
}
Expand Down

0 comments on commit 3672cdf

Please sign in to comment.