I’m working on a " Group-Project-Mixed-Messages " project myself, and I’m having an issue. I’m using VS Code on “GitPod”, and when I tried to run my website on the localhost server, I received an error message in the browser console that said:
Access to script at 'file:///C:/Users/victo/Downloads/Group-Project-Mixed-Messages-main/Group-Project-Mixed-Messages-main/index.js' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, isolated-app, chrome-extension, chrome-untrusted, https, edge. index.js:1
But I use a localhost server I didn’t need to disable CORS.
Here is a link to my GitHub project :
Can someone please help me fix this issue? Thank you.