FAQ
| This is a
LIVE
service |
Changelog
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
API for Frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Information Services
DevOps
Identity and Access Management
Activate Account
API for Frontend
Commits
3ca45ce1
Commit
3ca45ce1
authored
1 month ago
by
Mike Knee
Browse files
Options
Downloads
Patches
Plain Diff
fix: include cors app correctly
parent
f2714d0a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!102
Update CORS settings to allow for recaptcha token to be provided in headers
Pipeline
#696017
passed
1 month ago
Stage: build
Stage: test
Stage: development
Stage: production
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
activate_account_project/settings/base.py
+8
-0
8 additions, 0 deletions
activate_account_project/settings/base.py
with
8 additions
and
0 deletions
activate_account_project/settings/base.py
+
8
−
0
View file @
3ca45ce1
...
...
@@ -4,6 +4,7 @@ from datetime import timedelta
import
externalsettings
import
structlog
from
corsheaders.defaults
import
default_headers
from
api.versions
import
AVAILABLE_VERSIONS
...
...
@@ -72,6 +73,7 @@ INSTALLED_APPS = [
"
django_filters
"
,
"
drf_spectacular
"
,
"
rest_framework
"
,
"
corsheaders
"
,
"
knox
"
,
"
activate_account
"
,
"
api
"
,
...
...
@@ -230,6 +232,12 @@ 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
"
,
)
SWAGGER_SETTINGS
=
{
# Describe token authentication in swagger definition
...
...
This diff is collapsed.
Click to expand it.
activate-account-bot
@group_13776_bot_e0f7b514695d289869dfcac78be636eb
mentioned in merge request
!104 (merged)
·
1 month ago
mentioned in merge request
!104 (merged)
mentioned in merge request !104
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment