Meteor mobile app. Custom site authentication and Access-Control-Allow-Origin -


i need develop mobile app , allow authenticate via corporate site via soap. tried send get/post requests different sites (from client code) , observing same error, like

i20150602-18:54:17.186(3) (android:http://meteor.local/:0) xmlhttprequest cannot load http://google.com/. origin http://meteor.local not allowed access-control-allow-origin. 

i tried create mobile-config.js file following content

app.accessrule("*"); 

but didn't help.

i don't know why setting doesn't trick , i'm not sure should authenticate client or server code?

i'm using meteor 1.1.0.2

this has been issue meteor cordova apps.

according response on https://github.com/meteor/meteor/issues/4132 can use browser policy package solve issue:

meteor add browser-policy 

add bit of code in:

server side code:

browserpolicy.content.alloworiginforall("http://meteor.local"); 

Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -