Skip to content
This repository has been archived by the owner on Jul 5, 2021. It is now read-only.

Blocked by Cors using $pdfmerger->save with options download #18

Open
fabien44300 opened this issue Aug 20, 2020 · 0 comments
Open

Blocked by Cors using $pdfmerger->save with options download #18

fabien44300 opened this issue Aug 20, 2020 · 0 comments

Comments

@fabien44300
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant