e
Showing
1 changed file
with
2 additions
and
1 deletions
| ... | @@ -131,10 +131,11 @@ class ApiController extends Controller | ... | @@ -131,10 +131,11 @@ class ApiController extends Controller |
| 131 | $apiCallId = "3"; | 131 | $apiCallId = "3"; |
| 132 | $pdfId = new pdfModel(); | 132 | $pdfId = new pdfModel(); |
| 133 | $pdfId = $pdfId->changePdf($apiCallId, $json); | 133 | $pdfId = $pdfId->changePdf($apiCallId, $json); |
| 134 | header("Access-Control-Allow-Origin: *"); | ||
| 134 | 135 | ||
| 135 | // ALLOW OPTIONS METHOD | 136 | // ALLOW OPTIONS METHOD |
| 136 | $headers = [ | 137 | $headers = [ |
| 137 | 'Access-Control-Allow-Origin'=> '*', | 138 | |
| 138 | 'Access-Control-Allow-Methods'=> 'POST, GET, OPTIONS, PUT, DELETE', | 139 | 'Access-Control-Allow-Methods'=> 'POST, GET, OPTIONS, PUT, DELETE', |
| 139 | 'Access-Control-Allow-Headers'=> 'Content-Type, X-Auth-Token, Origin' | 140 | 'Access-Control-Allow-Headers'=> 'Content-Type, X-Auth-Token, Origin' |
| 140 | ]; | 141 | ]; | ... | ... |
-
Please register or sign in to post a comment