lara-pdf-merger
lara-pdf-merger copied to clipboard
Blocked by Cors using $pdfmerger->save with options download
Hello,
I authorized all the "cors" in my Laravel Backend. All my requests (axios) from Frontend (VUEJS) to Backend api (LARAVEL) works. The configuration of cors works and I received all response from backend, except when I use lara-pdf-merger and call : $pdfMerger->save("test.pdf'", "download"); , the frontend receive immediatly the response :
Access to XMLHttpRequest at 'http://back.test.fr/api/generatepdf' from origin 'http://front.test.fr' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
I don't understand why only this package don't work with cors ??? Is TCPDF or something else causing conflicts avec "cors" ?
Fabien