I am working on IONIC 3/Angular android app. ionic is sending http header origin as file:// for POST and PUT methods of Http calls. It does not add origin to GET method.
The lib i used is '@angular/http'.
We have strict restrictions on the API side. we cannot modify that.
Can any one suggest a solution?
Following is the snippet of http header
content-type:application/json
Host:XXXXXXX
Origin:file://
User-Agent:Mozilla/5.0 (Linux; Android 7.1.1; Android SDK built
for x86 Build/NYC; wv) AppleWebKit/537.36 (KHTML, like Gecko)
Version/4.0 Chrome/55.0.2883.91 Mobile Safari/537.36
X-DevTools-Emulate-Network-Conditions-Client-Id:XXXXX
X-Requested-With:com.X.X.X
I also looked the following POSTs and forums. No luck
SO link but no solution.
Ionic native app is sending header Origin:file:// which causes problems