Angularjs Post Request header field Content-type is not allowed by Access-control-allow-headers in preflight response.

Source: Internet
Author: User

Tags: nbsp cat angularjs pos Configuration js post data not ICA

Phenomenon:

1. Angular HTTP does not configure data (request parameters) without error

2. After adding the request parameter, the error

3. Server Response.headers (). Set (HttpHeaders.Names.ACCESS_CONTROL_ALLOW_HEADERS, HttpHeaders.Names.CONTENT_TYPE);

by check:

1. Angularjs Default Application/json

2. No parameter does not send Preoption request

3. UrlEncode does not send preoption request

Angularjs Post Request header field Content-type is not allowed by Access-control-allow-headers in preflight response.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

Tags Index: