DEV Community

Rowida
Rowida

Posted on

Access "file name" From Origin 'null' has been Blocked by cors Policy: Cross Origin requests are only supported for Pro

Image description

whenever I try to import files in JS&TS I got this error.

Solutions :

Open the CMD, globally execute that command line.

npm install anywhere -g
Enter fullscreen mode Exit fullscreen mode

To run the server

anywhere
Enter fullscreen mode Exit fullscreen mode

and then, run your server at https://192.168.1.8:8001/

Top comments (0)