PricingBlog

Update CORS policy on web components?

  • honest_unicorn_59455-1179809656881815562

    Eli

    2 years ago

    I'm building a web component and it has been working fine using the script from the branch I was working in but now that I switch over to the 'main' branch script for production I'm getting the following error 'has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource'. How can I resolve this?
  • andreasmoller-1179848240032653322

    Andreas Møller

    2 years ago

    Hi Eli, we will look into this and get back to you
  • erikbeus-1179849837139730553

    Erik Beuschau

    2 years ago

    I’ll have a look tomorrow morning. What’s your project name? And if you can share a URL or anything else that might help me identify the issue, feel free to send me a DM 🙌
  • honest_unicorn_59455-1179867993744883802

    Eli

    2 years ago

    Thanks guys! Just sent you a DM @Erik Beuschau.
  • erikbeus-1180072302382161970

    Erik Beuschau

    2 years ago

    @Eli I've made sure that errors actually get sent through 😅 Hopefully that makes it easier to debug on your end.
    It appeared that the component you were trying to export didn't exist on your main branch.