Category: typescript

Symfony/Webpack.encore configuration, add "modules rules" for using typescript with vue.js

I’m using Symfony 5 with webpack.encore and vue.js as front-end framework. I want to use typescript in vue. This basically works but I get an errer-msg when I try to import components, like this: homepage.ts import Vue1 from "vue"; import…

CORS policy: It does not have HTTP ok status

From https://example.com, I would like to get data from https://api.example.com/login. But what I get is this error: Access to XMLHttpRequest at ‘https://api.example.com/login‘ from origin ‘https://example.com‘ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check:…