GithubHelp home page GithubHelp logo

Comments (3)

missingeverytime avatar missingeverytime commented on June 14, 2024 2

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.

brenoccamp avatar brenoccamp commented on June 14, 2024

@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.

brenoccamp avatar brenoccamp commented on June 14, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.