This is a server side issue. You don't need to add any headers in angular for cors.
You need to add header on the server side:
Access-Control-Allow-Headers: Content-Type
Access-Control-Allow-Methods: GET, POST, OPTIONS
Access-Control-Allow-Origin: *
First two answers here: How to enable CORS in AngularJs
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…