1๐
โ
I have been looking into this. Are you webserver on the same domain as your vue application? If not then you need to add the real URL when doing the request e.g http://localhost:8080/backend_user_handling/Login.php
, you will also need to setup the server to respond with the valid headers e.g Access-Control-Allow-Origin: *
and so on.
Notice, that if you are running your vue app on http://localhost:5174
and make a request to backend/user_handling/Login.php
it will then try to use the same domain e.g http://localhost:5174
, which probably is not what you want.
๐คCyclonecode
Source:stackexchange.com