the previous project (front and rear separation) is that the verification code and data acquisition are normal on the apache server!
then switch to nginx server result graphics CAPTCHA cannot be verified! But there is nothing wrong with getting and submitting data!
then configure it in the server configuration
add_header Access-Control-Allow-Origin *;
add_header Access-Control-Allow-Headers X-Requested-With;
add_header Access-Control-Allow-Methods GET,POST,OPTIONS;
Don"t say the CAPTCHA code after configuration, and even prompt to get the data
Response to preflight request doesn"t pass access control check: The "Access-Control-Allow-Origin" header contains multiple values "http://localhost:9080, *", but only one is allowed. Origin "http://localhost:9080" is therefore not allowed access.
is there any way to solve it?