Http request error cause cors

hi,

i start a project by framework7 vue.
i made a simple http get request.
it got a error message below. (test in browser: http://localhost:5173/)
i’ve googled and search in the forum and tried the solutions. but no one got to work.

is here someone found the real solution?

otherwise, i cannot use to develop a app which need to communicate with internet.

thanks.

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://www.example.com/. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 200.

someone said that it’s a problem with vite.

Try not using localhost, try 127.0.0.1.