Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
funkwhale
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
JocelynDelalande
funkwhale
Commits
6b1b2a12
Verified
Commit
6b1b2a12
authored
7 years ago
by
Eliot Berriot
Browse files
Options
Downloads
Patches
Plain Diff
Fixed #49: set CSRF_TRUSTED_ORIGINS from ALLOWED_HOSTS
parent
aa3815dc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG
+7
-1
7 additions, 1 deletion
CHANGELOG
api/config/settings/production.py
+2
-0
2 additions, 0 deletions
api/config/settings/production.py
with
9 additions
and
1 deletion
CHANGELOG
+
7
−
1
View file @
6b1b2a12
...
...
@@ -5,11 +5,17 @@ Changelog
0.2.5 (unreleased)
------------------
Features:
- Import: can now specify search template when querying import sources (#45)
- Player: better handling of errors when fetching the audio file (#46)
- Login form: now redirect to previous page after login (#2)
- 404: a decent 404 template, at least (#48)
Bugfixes:
- Player: better handling of errors when fetching the audio file (#46)
- Csrf: default CSRF_TRUSTED_ORIGINS to ALLOWED_HOSTS to avoid Csrf issues on admin (#49)
0.2.4 (2017-12-14)
------------------
...
...
This diff is collapsed.
Click to expand it.
api/config/settings/production.py
+
2
−
0
View file @
6b1b2a12
...
...
@@ -55,6 +55,8 @@ SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
# Hosts/domain names that are valid for this site
# See https://docs.djangoproject.com/en/1.6/ref/settings/#allowed-hosts
ALLOWED_HOSTS
=
env
.
list
(
'
DJANGO_ALLOWED_HOSTS
'
)
CSRF_TRUSTED_ORIGINS
=
ALLOWED_HOSTS
# END SITE CONFIGURATION
INSTALLED_APPS
+=
(
"
gunicorn
"
,
)
...
...
This diff is collapsed.
Click to expand it.
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