Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$pdfmerger->download() blocked by CORS #33

Open
chongyc1 opened this issue Nov 30, 2022 · 0 comments
Open

$pdfmerger->download() blocked by CORS #33

chongyc1 opened this issue Nov 30, 2022 · 0 comments

Comments

@chongyc1
Copy link

my code:

...

$oMerger = PDFMerger::init();
$oMerger->addPDF($path1, 'all');
$oMerger->addPDF($path2, 'all');

//for local success
return $oMerger->download();

I got this error from dev tabconsole
Mixed Content: The site at 'https://domain.com' was loaded over a secure connection, but the file at 'https://domain.com/print' was redirected through an insecure connection. This file should be served over HTTPS. This download has been blocked. See https://blog.chromium.org/2020/02/protecting-users-from-insecure.html for more details.

Please give any solution. Thanks.

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

No branches or pull requests

1 participant