Skip to content

Commit

Permalink
nginx: Create CORS configuration to be used on services locations
Browse files Browse the repository at this point in the history
Co-authored-by: Willian Galvani <[email protected]>
  • Loading branch information
rafaellehmkuhl and Williangalvani committed Nov 14, 2023
1 parent 68d51b3 commit d8b7515
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/tools/nginx/cors.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' '*';
add_header 'Access-Control-Allow-Headers' '*';
return 204;
}

0 comments on commit d8b7515

Please sign in to comment.