Skip to content

Commit

Permalink
feat: add CORS headers to API.
Browse files Browse the repository at this point in the history
  • Loading branch information
PromiseFru committed Dec 11, 2024
1 parent 59a6dc7 commit b0b331c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ def get_security_headers() -> dict:
"Referrer-Policy": "no-referrer-when-downgrade",
"Content-Security-Policy": "default-src 'self';",
"Permissions-Policy": "geolocation=(self)",
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Methods": "GET",
"Access-Control-Allow-Headers": "Content-Type",
}


Expand Down

0 comments on commit b0b331c

Please sign in to comment.