People let me ask the same post method as to why the place is not. I'm calling api post between laravel and vuejs. thanks all read the article!
Asked
Active
Viewed 1,005 times
1 Answers
0
looking at the first image, a script from test.devpro.vn
is calling a script from demo.devpro.vn
this is considered Cross origin resource sharing (CORS), and the browser will check if the destination host has access-control-allow-origin
flag enabled before it tries to get send the request.
access-control-allow-origin can be enabled on the destination server based on its type, if these these are both aliases to your testing environment, and you can just call scripts from the same host to work around the problem
![](../../users/profiles/150820.webp)
Bouzid Zitouni
- 161
- 7