CurrentByGE / ie-angular-ref-app

MIT License
1 stars 4 forks source link

Predix-Zone-Id is not allowed by Access-Control-Authorization-Header #2

Open tungalbert99 opened 8 years ago

tungalbert99 commented 8 years ago

XMLHttpRequest cannot load https://ie-media-service.run.aws-usw02-pr.ice.predix.io/media/file/1000000018_1469316552669_IMAGE. Request header field Predix-Zone-Id is not allowed by Access-Control-Allow-Headers in preflight response.

Somehow the HTTP Request fails for images on browsers such as Google Chrome(works fine for PostMan/curl). The specific API does not seem to have the specific authorization in the header (while the other APIs do).

anshul-bakliwal commented 8 years ago

For now, try with reverse proxy approach and it should work. Thanks.

anundinesh commented 7 years ago

Is it possible to implement in angularJS? Because we are getting 401 UnAuthorized error, we are not able to add predix-zone-id and authorization code.