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
d0e22954
authored
2016-05-12 14:54:31 -0400
by
Jeff Balicki
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
e
1 parent
4c0ef135
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
app/Http/Controllers/ApiController.php
bootstrap/app.php
app/Http/Controllers/ApiController.php
View file @
d0e2295
...
...
@@ -131,19 +131,12 @@ class ApiController extends Controller
$apiCallId
=
"3"
;
$pdfId
=
new
pdfModel
();
$pdfId
=
$pdfId
->
changePdf
(
$apiCallId
,
$json
);
header
(
"Access-Control-Allow-Origin: *"
);
// ALLOW OPTIONS METHOD
$headers
=
[
'Access-Control-Allow-Methods'
=>
'POST, GET, OPTIONS, PUT, DELETE'
,
'Access-Control-Allow-Headers'
=>
'Content-Type, X-Auth-Token, Origin'
];
$pdf
=
new
PdfController
();
$pdf
=
$pdf
->
pdf
(
$pdfId
);
$response
=
$pdf
;
$statusCode
=
200
;
return
Response
::
json
(
$response
,
$statusCode
,
$headers
);
return
Response
::
json
(
$response
,
$statusCode
);
...
...
bootstrap/app.php
View file @
d0e2295
<?php
// allow origin
header
(
'Access-Control-Allow-Origin: *'
);
// add any additional headers you need to support here
header
(
'Access-Control-Allow-Headers: Origin, Content-Type'
);
/*
|--------------------------------------------------------------------------
| Create The Application
...
...
Please
register
or
sign in
to post a comment