Provisional headers are shown prompt appears successfully for http request

both options and post return 200. Login normally, but Provisional headers are shown prompt appears

Apr.24,2021

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.

The presence of

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.

.
Menu