Quantcast
Viewing latest article 1
Browse Latest Browse All 2

Answer by pkimtani for VueJs cross origin issue

When you try to access a resource in same domain, say localhost, the methods go through easily, but when you try to access anything outside the domain, ex: localhost:8080 (VueJS app) is trying to request resource on server mydomain.com (PHP code), the access is block to prevent cross-origin access. This is a security measure.

In order to resolve requests from trusted domain, you need to provide access control headers. Try something like this


Viewing latest article 1
Browse Latest Browse All 2

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>