angularjs - How to fix this Access-Control-Allow-Headers error -


i'm using angularjs post localhost api. got error message:

xmlhttprequest cannot load "...api link..." request header field authorization not allowed access-control-allow-headers in preflight response. 

i can post api when use "allow-control-allow-origin" chrome extension. temporary, way works when use extension on borwser. users got problem when use in own browser.

how fix client side.

i don't think can fix issue client side. api server controls can access (using allow-control-allow-origin header) have change there.


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -