Skip to content

Instantly share code, notes, and snippets.

@mooyoul
Created June 16, 2016 18:39
Show Gist options
  • Save mooyoul/7326d92da19ea30f8d522e6ae4c3e8c2 to your computer and use it in GitHub Desktop.
Save mooyoul/7326d92da19ea30f8d522e6ae4c3e8c2 to your computer and use it in GitHub Desktop.
kakaotalk-ios-webview-hack
// This is a workaround for XHR deny issue with KakaoTalk Webview.
// It is really hacky way. Not recommended.
if (location.protocol !== 'https:') {
location.href = 'https://your.website.com'; // Specify https scheme!
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment