Software Archive
Read-only legacy content
17061 ディスカッション

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

meiyu_l_
ビギナー
574件の閲覧回数

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

0 件の賞賛
1 返信
PaulF_IntelCorp
従業員
574件の閲覧回数

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

返信