You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and getting this error:
Access to script at 'https://<myserver.de>/react@latest' from origin 'http://localhost:8080' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
server config:
"corsAllowOrigins": [],
also tried:
"corsAllowOrigins": [ "http://localhost:8080" ],
The text was updated successfully, but these errors were encountered:
using a web project with vite
resolve: {
alias: [
{ find: "react", replacement: "https://<myserver.de>/react@latest" },
{ find: "react-dom", replacement: "https://<myserver.de>/react-dom@latest" },
]
}
and getting this error:
Access to script at 'https://<myserver.de>/react@latest' from origin 'http://localhost:8080' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
server config:
"corsAllowOrigins": [],
also tried:
"corsAllowOrigins": [ "http://localhost:8080" ],
The text was updated successfully, but these errors were encountered: