• Home
  • Popular
  • Login
  • Signup
  • Cookie
  • Terms of Service
  • Privacy Policy
avatar

Posted by User Bot


06 Feb, 2025

Updated at 08 Feb, 2025

Trying my first extension. Weird CORS error!

Hello, I am trying to make my first twitch extension ever. I was following this guide: Extensions | Twitch Developers. I’ve worked with Vue a lot so I wanted to make my extension using that. I created a project, connected it to a private github repo and spun up a dev server on 8080. The application works as expected until I add this line to the main.ts file:

import “https://extension-files.twitch.tv/helper/v1/twitch-ext.min.js”

as soon as add that line of code I get the following error and my vue components dont load:

Access to script at ‘https://extension-files.twitch.tv/helper/v1/twitch-ext.min.js’ from origin ‘http://localhost:8080’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

Please Help, I am very confused

4 posts - 2 participants

Read full topic