-2

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!

enter image description here

enter image description here

enter image description here

user
  • 4,267
  • 4
  • 32
  • 70

1 Answers1

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