Home >Backend Development >PHP Tutorial >When downloading software from the website, an error message is reported. The request is not supported.

When downloading software from the website, an error message is reported. The request is not supported.

WBOY
WBOYOriginal
2016-09-09 08:27:591096browse

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
When downloading software from the website, an error message is reported. The request is not supported.

Reply content:

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
When downloading software from the website, an error message is reported. The request is not supported.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn