Home >Backend Development >PHP Tutorial >When downloading software from the website, an error message is reported. The request is not supported.
1. I immediately thought that it might be a cross-domain problem
2. I immediately added this sentence to the php fileheader("Access-Control-Allow-Origin:*");
3. Then I I tested it on this machine using the second-level domain name mapped by peanut shells, and I was able to download it after logging in.
4. I would like to ask all the masters here if my thinking is correct (the Internet speed at home is slow and I need to solve this problem urgently tomorrow morning, so this is the only way I can ask). I kneel down here! ! !
This picture is an error message
1. I immediately thought that it might be a cross-domain problem
2. I immediately added this sentence to the php fileheader("Access-Control-Allow-Origin:*");
3. Then I I tested it on this machine using the second-level domain name mapped by peanut shells, and I was able to download it after logging in.
4. I would like to ask all the masters here if my thinking is correct (the Internet speed at home is slow and I need to solve this problem urgently tomorrow morning, so this is the only way I can ask). I kneel down here! ! !
This picture is an error message