Comments (3)
Hi @kempsteven ,
I have found the reason why this problem happened.
The main reason is that the access of image url should be allowed cross-origin.
The response heads of image must contain Access-Control-Allow-Origin: *
, Access-Control-Allow-Methods: GET,OPTIONS
.
Thanks again.
from vue-html2pdf.
@missingeverytime Can you show me how had you fix it and the final code please? I'm heaving the same issue using vue-html2pdf and Google maps API ( component).
from vue-html2pdf.
Hi @missingeverytime , can you help me please? I'm having the same issue using vue-html2pdf and gmap-map component (to get maps from Google Maps API). Here is the cors errors: Access to image at 'https://maps.googleapis.com/maps/api/js/StaticMapService.GetMapImage?1m2&1i12764133&2i18976373&2e1&3u17&4m2&1u378&2u244&5m6&1e0&5spt-BR&6sus&10b1&12b1&14i1379903&key=AIzaSyBkF2eLJeDHk3H15Za2d1WUnl9tU7g0Zp0&token=24783' from origin 'http://localhost:9090' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Where must I put the Access-Control-Alow-Origin?
from vue-html2pdf.
Related Issues (20)
- Generates content on the center of pdf
- Not working on vue3 HOT 1
- xmldom Improper Input Validation
- xmldom Improper Input Validation
- xmldom Prototype Pollution
- shvl Prototype Pollution
- jspdf Cross-site Scripting (XSS)
- jspdf Cross-site Scripting (XSS)
- jspdf Regular Expression Denial of Service (ReDoS)
- xmldom Improper Input Validation
- xmldom XML External Entity (XXE) Injection
- The text movedown HOT 3
- Using ref as pdf-content does not print layout html report HOT 1
- It's getting blank after 30 page of Print content. How to solve it? HOT 5
- Prevent table overflow data
- Prevent table data overflow
- Vue 3: deprecated packages on vue3-html2pdf
- The text takes background color
- Docs/ ReadMe needs more transparency HOT 2
- Unable to Assign a PDF Created Without Download to a Vue Variable
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-html2pdf.