0

How can we open external site URL which has basic Auth in phoneGap View?

super.loadUrl("https://google.com"); //it works
super.loadUrl("https://xyz.com"); //this site has Basic Auth, it's not working & it is not giving authentication challenge (popup for credentials)

How can we pass the credentials? Right now I am not using any phoneGap features, let me if there is any other way to proceed.

4

1 に答える 1

0

これを試してください: 「res」フォルダーの「config.xml」ファイルを編集し、そこにあるものを次の行に置き換えます。

<access origin="http://127.0.0.1*"/> 
<access origin="https://xyz.com" /> 
<access origin="https://xyz.com" subdomains="true" />
<access origin=".*"/>
于 2012-12-24T21:25:22.670 に答える