Software Archive
Read-only legacy content
17061 Discussions

who can give a sample for $http ,CORS ,contains services?

meiyu_l_
Beginner
568 Views

I made a $http  the browse said:No 'Access-Control-Allow-Origin' header is present on the requested resource.

0 Kudos
1 Reply
PaulF_IntelCorp
Employee
568 Views

You need to use CSP and/or the domain access whitelist feature. See this doc for what will work with CLI 5 when we offer it: https://github.com/apache/cordova-plugin-whitelist and see this for our current support: https://software.intel.com/en-us/forums/topic/559482

0 Kudos
Reply