FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit c5e47745 authored by Mike Knee's avatar Mike Knee
Browse files

feat: add allowed recaptcha header

parent 3ca45ce1
No related branches found
No related tags found
1 merge request!102Update CORS settings to allow for recaptcha token to be provided in headers
Pipeline #698099 passed
......@@ -232,12 +232,7 @@ SPECTACULAR_SETTINGS = {
# Allow all origins to access API.
CORS_URLS_REGEX = r"^.*$"
CORS_ORIGIN_ALLOW_ALL = True
CORS_ALLOW_HEADERS = (
*default_headers,
"Sec-Ch-Ua",
"Sec-Ch-Ua-Mobile",
"Sec-Ch-Ua-Platform",
)
CORS_ALLOW_HEADERS = (*default_headers, "X-Recaptcha-Token")
SWAGGER_SETTINGS = {
# Describe token authentication in swagger definition
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment