Under the https protocol, the post request is cross-domain, but the get request is not.

under the https protocol, the post request is cross-domain, the get request is not cross-domain, and the http protocol is fine.

related codes

clipboard.png

clipboard.png

clipboard.png

clipboard.png

clipboard.png


PHP Code:

  http://localhost:3000");

header ("Access-control-Allow-Origin:*");

/ / the response header is set to ajax submission

header ("Access-Control-Allow-Headers:X-Requested-With");

/ / allow to carry user authentication credentials (that is, allow requests sent by the client to carry Cookie)

header ("Access-Control-Allow-Credentials:true");

write to the inside of the method

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b33499-e3cf.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b33499-e3cf.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?