Giter VIP home page Giter VIP logo

Comments (6)

oleksmarkh avatar oleksmarkh commented on August 22, 2024

Hi @degatt2! Could you please check what's the value of the origin request header being sent from inside a Figma plugin? Does it also happen when you're developing on localhost without a Figma plugin, like on a simple HTML page? Normally, when the origin request header is sent, the corresponding CORS headers are sent back. Also please note that http: requests are redirected with 301 to https: for that resource.

from maps-api-for-javascript-examples.

sackh avatar sackh commented on August 22, 2024

Hi @oleksmarkh - I am also getting the same error. Please find attached the HTML example file for the same.
demo.txt

from maps-api-for-javascript-examples.

sackh avatar sackh commented on August 22, 2024

This issue is resolved for me. just use https instead of http in URL:
http://js.api.here.com/v3/3.1/styles/omv/miami/normal.day.yaml

from maps-api-for-javascript-examples.

degatt2 avatar degatt2 commented on August 22, 2024

from maps-api-for-javascript-examples.

sackh avatar sackh commented on August 22, 2024

sorry forgot to mention one more thing remove headers from line: 36 {headers: {'access-control-allow-origin': '*'}, in my code.

from maps-api-for-javascript-examples.

oleksmarkh avatar oleksmarkh commented on August 22, 2024

As I understand, CORS issues aren't tight to the Figma Plugin environment itself, rather to actual style URLs. We can reopen this one in future to track down particular root causes of unexpected CORS blocking, having some isolated and reproducible examples. Thank you for the reports!

from maps-api-for-javascript-examples.

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.