Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Tenzing
/
pdf-customizer
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
31cb8c38
authored
2016-08-17 09:30:25 -0400
by
Jeff Balicki
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
c
1 parent
760edf3c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
app/Http/Middleware/Cors.php
app/Http/Middleware/Cors.php
View file @
31cb8c3
...
...
@@ -23,9 +23,10 @@ class Cors
'Access-Control-Allow-Headers'
=>
'Content-Type, X-Auth-Token, Origin'
,
'Access-Control-Max-Age'
=>
'28800'
];
if
(
$request
->
getMethod
()
==
"OPTIONS"
)
{
// The client-side application can set only headers allowed in Access-Control-Allow-Headers
return
Response
::
make
(
'OK'
,
200
,
$headers
);
}
$response
=
$next
(
$request
);
foreach
(
$headers
as
$key
=>
$value
)
...
...
Please
register
or
sign in
to post a comment