Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dashboard
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
red-giant
dashboard
Commits
1945908b
Verified
Commit
1945908b
authored
3 years ago
by
Defendi Alberto
Browse files
Options
Downloads
Patches
Plain Diff
Document.
parent
4b41c261
No related branches found
No related tags found
2 merge requests
!69
Possibility to insert a reservation and new docs.
,
!67
Insert a reservation and search by senior.
Pipeline
#13256
failed
3 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/api/axios/configDjangoCookieName.ts
+1
-0
1 addition, 0 deletions
src/api/axios/configDjangoCookieName.ts
with
1 addition
and
0 deletions
src/api/axios/configDjangoCookieName.ts
+
1
−
0
View file @
1945908b
...
@@ -6,5 +6,6 @@ import axios from 'axios';
...
@@ -6,5 +6,6 @@ import axios from 'axios';
export
const
configDjangoCookieName
=
():
void
=>
{
export
const
configDjangoCookieName
=
():
void
=>
{
axios
.
defaults
.
xsrfHeaderName
=
'
X-CSRFTOKEN
'
;
axios
.
defaults
.
xsrfHeaderName
=
'
X-CSRFTOKEN
'
;
axios
.
defaults
.
xsrfCookieName
=
'
csrftoken
'
;
axios
.
defaults
.
xsrfCookieName
=
'
csrftoken
'
;
/** Set cookie to each request header by default. Avoids inserting it into the body each time. */
axios
.
defaults
.
withCredentials
=
true
;
axios
.
defaults
.
withCredentials
=
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