Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
djangoldp
Manage
Activity
Members
Labels
Plan
Issues
99
Issue boards
Milestones
Wiki
Code
Merge requests
5
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
djangoldp-packages
djangoldp
Commits
593366c0
Commit
593366c0
authored
5 years ago
by
Sylvain Le Bon
Browse files
Options
Downloads
Patches
Plain Diff
update: allow DELETE in CORS
parent
1867505e
No related branches found
Branches containing commit
Tags
v0.5.77
Tags containing commit
No related merge requests found
Pipeline
#935
passed with stage
in 1 minute and 34 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
djangoldp/views.py
+1
-1
1 addition, 1 deletion
djangoldp/views.py
with
1 addition
and
1 deletion
djangoldp/views.py
+
1
−
1
View file @
593366c0
...
...
@@ -135,7 +135,7 @@ class LDPViewSet(LDPViewSetGenerator):
def
dispatch
(
self
,
request
,
*
args
,
**
kwargs
):
response
=
super
(
LDPViewSet
,
self
).
dispatch
(
request
,
*
args
,
**
kwargs
)
response
[
"
Access-Control-Allow-Origin
"
]
=
request
.
META
.
get
(
'
HTTP_ORIGIN
'
)
response
[
"
Access-Control-Allow-Methods
"
]
=
"
GET,POST,PUT,PATCH
"
response
[
"
Access-Control-Allow-Methods
"
]
=
"
GET,POST,PUT,PATCH
,DELETE
"
response
[
"
Access-Control-Allow-Headers
"
]
=
"
authorization, Content-Type, if-match, accept
"
response
[
"
Access-Control-Expose-Headers
"
]
=
"
Location
"
response
[
"
Access-Control-Allow-Credentials
"
]
=
'
true
'
...
...
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