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
14fecb6d
authored
2016-05-02 16:35:25 -0400
by
Jeff Balicki
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
h
1 parent
adb7d450
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
app/Http/Controllers/ApiController.php
app/Http/Controllers/ApiController.php
View file @
14fecb6
...
...
@@ -106,7 +106,8 @@ class ApiController extends Controller
$pdf
=
$pdf
->
pdf
(
$pdfId
);
$response
=
$pdf
;
$statusCode
=
200
;
return
Response
::
json
(
$response
,
$statusCode
);
return
Response
::
json
(
$response
,
$statusCode
)
->
header
(
"Access-Control-Allow-Origin"
,
"*"
);
}
...
...
@@ -120,7 +121,7 @@ class ApiController extends Controller
$response
=
$rows
;
$statusCode
=
200
;
return
Response
::
json
(
$response
,
$statusCode
)
->
header
(
"Access-Control-Allow-Origin
:
*"
);
->
header
(
"Access-Control-Allow-Origin
"
,
"
*"
);
}
...
...
@@ -141,7 +142,8 @@ class ApiController extends Controller
$rows
=
$rows
->
getpdf
(
$json
)
->
get
();
$response
=
$rows
;
$statusCode
=
200
;
return
Response
::
json
(
$response
,
$statusCode
);
return
Response
::
json
(
$response
,
$statusCode
)
->
header
(
"Access-Control-Allow-Origin"
,
"*"
);
}
...
...
Please
register
or
sign in
to post a comment