Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
f9788bc1
Commit
f9788bc1
authored
Mar 02, 2017
by
Robert Schilling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CORS: Whitelist pagination headers
parent
d4154195
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
changelogs/unreleased/expose-pagination-headers.yml
changelogs/unreleased/expose-pagination-headers.yml
+4
-0
config/application.rb
config/application.rb
+2
-2
No files found.
changelogs/unreleased/expose-pagination-headers.yml
0 → 100644
View file @
f9788bc1
---
title
:
'
CORS:
Whitelist
pagination
headers'
merge_request
:
9651
author
:
Robert Schilling
config/application.rb
View file @
f9788bc1
...
...
@@ -120,7 +120,7 @@ module Gitlab
credentials:
true
,
headers: :any
,
methods: :any
,
expose:
[
'Link'
]
expose:
[
'Link'
,
'X-Total'
,
'X-Total-Pages'
,
'X-Per-Page'
,
'X-Page'
,
'X-Next-Page'
,
'X-Prev-Page'
]
end
# Cross-origin requests must not have the session cookie available
...
...
@@ -130,7 +130,7 @@ module Gitlab
credentials:
false
,
headers: :any
,
methods: :any
,
expose:
[
'Link'
]
expose:
[
'Link'
,
'X-Total'
,
'X-Total-Pages'
,
'X-Per-Page'
,
'X-Page'
,
'X-Next-Page'
,
'X-Prev-Page'
]
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment