Page 1 of 2
Linkedin HTTPS error
Posted: Wed Jul 23, 2014 7:45 pm
by anton6984647
Hello - my LinkedIn plugin from Appery was working fine until a few days ago. If I'm logged in to LinkedIn from elsewhere, there are no issues. If I'm not, the console logs the following error:
Uncaught SecurityError: Blocked a frame with origin "http://appery.io" from accessing a frame with origin "https://www.linkedin.com". The frame requesting access has a protocol of "http", the frame being accessed has a protocol of "https". Protocols must match.
Is there a way to fix this or set the Appery site to use the https protocol on mobile preview?
Linkedin HTTPS error
Posted: Wed Jul 23, 2014 8:47 pm
by Evgene Karachevtsev
Hello Anton,
Could you please provide us with screenshot of error and steps to reproduce it?
Linkedin HTTPS error
Posted: Wed Jul 23, 2014 9:09 pm
by anton6984647
Sure - I just made a fresh new app, imported the LinkedIn plugin, filled out my api keys, and tested the plugin to get the error. This was working a few days ago.
Linkedin HTTPS error
Posted: Wed Jul 23, 2014 9:12 pm
by anton6984647
Sure - I just made a fresh new app, imported the LinkedIn plugin, filled out my api keys, and tested the plugin to get the error. The console logs this error when trying to open the LinkedIn login window. In the standard plugin LINKEDIN_api.js code:
performPoll = function(popup) {
var pollForUrl = function() {
var url = popup.location.href; <--- this throws the error
var result = checkPopup(url, popup);
if (result) {
clearInterval(handle);
retreiveToken(result.code);
}
Linkedin HTTPS error
Posted: Thu Jul 24, 2014 6:57 am
by Kateryna Grynko
Hi Anton,
This should work.
Could you please share the app with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a or post a public link?
Linkedin HTTPS error
Posted: Sun Jul 27, 2014 2:45 pm
by anton6984647
I just shared the app called LINKEDIN_PLUGI_TEST. When not signed in to LinkedIn already, clicking the Login button opens a new window to enter my credentials but also throws the error as described above. This is the default linkedin plugin with nothing modified except my api key and secret code.
Linkedin HTTPS error
Posted: Sun Jul 27, 2014 3:28 pm
by Illya Stepanov
Hi Anton - we see your shared app, we'll take a look.
Linkedin HTTPS error
Posted: Wed Jul 30, 2014 10:27 am
by Evgene Karachevtsev
Hello Anton,
Sorry for delay. We tested your app, you may not pay attention to the error. The error is not critical. In a hybrid application they shouldn't appear at all, only in the browser
Linkedin HTTPS error
Posted: Thu Jul 31, 2014 1:08 am
by anton6984647
Perfect, thank you. I did notice it ran fine on my Android phone as well.
Linkedin HTTPS error
Posted: Thu Nov 05, 2015 12:38 am
by JLP
I am having this same issue with my app. --The frame requesting access has a protocol of "http", the frame being accessed has a protocol of "https". Protocols must match.--
I do not see this issue resolved and I do not see a useful solution to it here. Why leave these things posted forever if they are unresolved and no one is working on the issue or giving a complete solution? It serves no purpose and only confuses the user community searching for answers.