Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: URL blocked by whitelist on Android #3597

Closed
asuwend1 opened this issue Apr 23, 2015 · 24 comments
Closed

bug: URL blocked by whitelist on Android #3597

asuwend1 opened this issue Apr 23, 2015 · 24 comments
Assignees

Comments

@asuwend1
Copy link

Type: bug

Platform: android 4.4 webview

My environment: OS X Yosemite, cordova 5.0.0, ionic 1.3.20. I use Firebase to for Facebook Authentication service. In IOS things work fine, but in Android, during Facebook authentication, I got: "W/SystemWebViewClient( 1556): URL blocked by whitelist: https://auth.firebase.com/v2/intense-torch-3742/auth/session?&requestId=whdi3macji4xffd91e2qxh96ohwamqsu380f&requestKey=XnWG8sRju97nlg4RM2pZQofpyLu933FI&v=js-2.2.4&transport=json&suppress_status_codes=true". In my config.xml: "
". Also tried "". I have InAppBrowser plugin installed too. Any thought why I'm seeing the URL was blocked where it should not according to config.xml? I have also checked all other config.xml files and they look good to me - they allow everything.

@mhartington
Copy link
Contributor

With the updated version of cordova-android, you now need to include the cordova-whitelist-plugin.

https://github.com/apache/cordova-mobile-spec/tree/master/cordova-plugin-whitelist

Try adding that to your project

@mhartington mhartington self-assigned this Apr 23, 2015
@mhartington mhartington added the needs: reply the issue needs a response from the user label Apr 23, 2015
@asuwend1
Copy link
Author

Hi Mike,

Thank you! It works now after adding that plugin. Thank you for your help.

Ari

@adamdbradley adamdbradley removed the needs: reply the issue needs a response from the user label Apr 23, 2015
@santoshshinde2012
Copy link

Please tell me how to install this plugin and simple demo code to call it ,
Thank you.

@matigda
Copy link

matigda commented Apr 29, 2015

for example:
cordova plugin add https://github.com/apache/cordova-plugin-whitelist.git

@santoshshinde2012
Copy link

Thank you for your help ,
I have successfully installed and run my application successfully .

@sferoze
Copy link

sferoze commented Apr 29, 2015

+1 thanks for the help. I needed the whitelist plugin to run my cordova app in android studio. Google search brought me here.

@mohamed-salah
Copy link

+1 thanks

@kosperera
Copy link

+1 Thanks for the comments, I have installed and ran my app successfully! Yey!

@woaiso
Copy link

woaiso commented May 9, 2015

+1 thanks

@mhartington
Copy link
Contributor

You need to upgrade to Cordova CLI 5.0 to get Cordova-android 4.0.

Mike Hartington

On May 10, 2015, at 12:27 PM, 8ozStudios notifications@github.com wrote:

I'm getting this error message:
"Failed to install 'cordova-plugin-whitelist':CordovaError: Plugin doesn't support this project's cordova-android version. cordova-android: 3.7.1, failed version requirement: >=4.0.0-dev"
My current version is 3.7.1 but when I run 'cordova platform update android', it just says "Android project is now at version 3.7.1". How do I upgrade to the correct version to use this plugin? Thanks!


Reply to this email directly or view it on GitHub.

@8ozStudios
Copy link

Thanks Mike, I actually found that this worked also:
"cordova platform update android@4.0.0"

thkdog pushed a commit to yurotet/ujie that referenced this issue May 20, 2015
@julienwikart
Copy link

Hi,

This plugin requires cordova ios 4.0.0 but i can only find cordova ios 3.8.0
How can I do ?

Thank you for your help

@8ozStudios
Copy link

@julienwikart Look one comment above yours - try running "cordova platform update android@4.0.0" from the command line.

@julienwikart
Copy link

Unfortunately my question was regarding iOS 4.0.0 and not android...

But I found the solution :
cordova platform add ios@4.0.x --usegit

@mhartington
Copy link
Contributor

cordova ios and cordova android both have separate release cycles. For cordova-ios, the whitelist plugin shouldn't do anything, sense it's not setup for it.

@bobbynathan
Copy link

how to solve the URL blocked whitelist issue while call weather api. Please help me to solve this issuse

@owgee
Copy link

owgee commented Jun 18, 2015

Thanks :)

@rszczypka
Copy link

How did you configure the whitelist plugin to allow the access? Did you use allow-intent or allow-navigation? I can't get it to work with calling firebase server for authentication.

@santekotturi
Copy link

@rszczypka all I had to do was add the plugin and the error was gone. No configuration, didn't even have to call or do anything with the plugin.

this post provides an html header you can if adding the plugin isnt working for you:
https://blog.nraboy.com/2015/05/whitelist-external-resources-for-use-in-ionic-framework/
it seems a bit too open to allow "everything" but maybe helps get it working?

@neerajdembla212
Copy link

+1 Thanks installing this plugin removed redirect errors from my android app.

@ghost
Copy link

ghost commented Nov 23, 2016

thanks. it solved the issue

@prachi708
Copy link

I am working on meteor. I am also facing problem of URL blocked by whitelist I installed "https://github.com/apache/cordova-plugin-whitelist" plugin. But it is giving me error "Skipping downloading new version because the Cordova platform version or plugin versions have changed and are potentially incompatible". I had even tried different viresions also.

Please tell how to resolve this issue

@mrlowe
Copy link

mrlowe commented Mar 20, 2018

@prachi708 meteor is locked to a particular version of cordova. Just install a specific version of whitelist with something like:

meteor add cordova:cordova-plugin-whitelist@1.3.3

If you're using an older version of meteor (locked to an older version of cordova) you may need to play with the whitelist versions or update meteor.

@ionitron-bot
Copy link

ionitron-bot bot commented Sep 1, 2018

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests