简体   繁体   中英

Access-Control-Allow-Origin while accessing

I am facing a problem of Access-Control-Allow-Origin while accessing from Angular JS, How should I fix this error with POST Request.

Please Provide me a solution to access or Insert data with POST request in Angular JS, Now I m fine with GET request to access cross domain but not with POST Request

Backend is developed in python Django

Ask your backend(python django) developer to configure django-cors-headers

A Django App that adds CORS (Cross-Origin Resource Sharing) headers to responses.

It's the best solution I have got so far. It'll allow cross origin requests.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM