Category : html2pdf

I am creating a website with symfony and angular. I would like to export a PDF with Html2PDF. But I get an error: Access to XMLHttpRequest at ‘http://localhost/pdf’ from origin ‘http://localhost:4200’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.** here is my code public function index(): string { ..

Read more