both options and post return 200. Login normally, but Provisional headers are shown prompt appears
both options and post return 200. Login normally, but Provisional headers are shown prompt appears
see that Request Methods is OPTIONS
, so you should use CORS
to make cross-domain requests.
for complex requests, a second check is performed.
for the first time, OPTIONS, is used to ask the backend if the request can be sent.
if the verification passes, you will be allowed to send a second request, that is, your POST
request here, and get the returned result smoothly.
Provisional headers are shown here is just a hint, because it's just for verification and nothing is returned, so you don't need to deal with it. The status code 200 only indicates that the interface is open, and there is no guarantee that a result will be returned.
refer to https://www.cnblogs.com/haife.
.Previous: What is the difference between vue property methods and event calls?
Next: The element check box group changes the value to true, through vue, but the page is not checked.