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
Post a Comment