e
Showing
2 changed files
with
3 additions
and
2 deletions
| ... | @@ -136,7 +136,8 @@ class ApiController extends Controller | ... | @@ -136,7 +136,8 @@ class ApiController extends Controller |
| 136 | $pdf = $pdf->pdf($pdfId); | 136 | $pdf = $pdf->pdf($pdfId); |
| 137 | $response = $pdf; | 137 | $response = $pdf; |
| 138 | $statusCode = 200; | 138 | $statusCode = 200; |
| 139 | return Response::json($response, $statusCode); | 139 | |
| 140 | return Response::json($response, $statusCode)->header('Access-Control-Allow-Origin', '*'); | ||
| 140 | 141 | ||
| 141 | 142 | ||
| 142 | 143 | ... | ... |
| ... | @@ -30,7 +30,7 @@ Route::group(array('prefix' => 'api/v1'), function($json) | ... | @@ -30,7 +30,7 @@ Route::group(array('prefix' => 'api/v1'), function($json) |
| 30 | 30 | ||
| 31 | }); | 31 | }); |
| 32 | 32 | ||
| 33 | Route::any('api/update', array('middleware' => 'cors', 'uses' => 'ApiController@update')); | 33 | Route::any('api/update', ['middleware' => 'cors', 'uses' => 'ApiController@update']); |
| 34 | 34 | ||
| 35 | Route::any('fileentry/postUpload', 'FileEntryController@postUpload'); | 35 | Route::any('fileentry/postUpload', 'FileEntryController@postUpload'); |
| 36 | 36 | ... | ... |
-
Please register or sign in to post a comment