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

Allow cleartext communication with mocky.io #42

Merged
merged 1 commit into from
Jan 8, 2019
Merged

Allow cleartext communication with mocky.io #42

merged 1 commit into from
Jan 8, 2019

Conversation

vy8
Copy link
Contributor

@vy8 vy8 commented Jan 8, 2019

Changing targetSdkVersion to 28 has introduced a side effect where clear text communication is no longer allowed.
When I run the app with a 28 emulator I get an error
<-- HTTP FAILED: java.net.UnknownServiceException: CLEARTEXT communication to www.mocky.io not permitted by network security policy

The easy solution would be to change the http://www.mocky.io/v2 endpoint to https. However their SSL configuration is bad and SSL requests to mocky.io get bounced.
They have an issue regarding this here: https://github.com/julien-lafont/Mocky/issues/35
Also it is evident when scanning them with this tool: https://www.sslshopper.com/ssl-checker.html#hostname=https://www.mocky.io/

This PR allows cleartext communication on 28 as described in this SO answer: https://stackoverflow.com/a/50834600/1803821

@amitshekhariitbhu amitshekhariitbhu merged commit f16a4bd into janishar:master Jan 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants