Home > Backend Development > PHP Tutorial > javascript - html js upload keeps getting error in http request, please give me some advice

javascript - html js upload keeps getting error in http request, please give me some advice

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2023-03-01 16:14:01
Original
1564 people have browsed it

javascript - html js upload keeps getting error in http request, please give me some advice
Request header field If-Modified-Since is not allowed by Access-Control-Allow-Headers in preflight response.

Access-Control-Allow-Origin:* has been set up on the server. What kind of problem might this be?

Please give me some advice on how to solve it

Reply content:

javascript - html js upload keeps getting error in http request, please give me some advice
Request header field If-Modified-Since is not allowed by Access-Control-Allow-Headers in preflight response.

Access-Control-Allow-Origin:* has been set up on the server. What kind of problem might this be?

Please give me some advice on how to solve it

From here it is a cross-domain problem
header("Access-Control-Allow-Origin: source domain name");
header("Access-Control-Allow-Credentials:true");

Related labels:
Statement of this Website
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
Latest Issues
html5 validation for symfony 2.1
From 1970-01-01 08:00:00
0
0
0
The difference between HTML and HTML5
From 1970-01-01 08:00:00
0
0
0
html5 show hide
From 1970-01-01 08:00:00
0
0
0
Can PDF files run HTML5 and Javascript?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template