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
760edf3c
authored
2016-08-17 09:28:50 -0400
by
Jeff Balicki
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
62ac6120
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
app/Http/Middleware/Cors.php
app/Http/Middleware/Cors.php
View file @
760edf3
...
...
@@ -20,12 +20,12 @@ class Cors
// ALLOW OPTIONS METHOD
$headers
=
[
'Access-Control-Allow-Methods'
=>
'POST, GET, OPTIONS, PUT, DELETE'
,
'Access-Control-Allow-Headers'
=>
'Content-Type, X-Auth-Token, Origin'
'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