anton6984647
Posts: 0
Joined: Mon Jul 14, 2014 3:53 pm

Linkedin HTTPS error

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?

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Linkedin HTTPS error

Hello Anton,

Could you please provide us with screenshot of error and steps to reproduce it?

anton6984647
Posts: 0
Joined: Mon Jul 14, 2014 3:53 pm

Linkedin HTTPS error

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.

anton6984647
Posts: 0
Joined: Mon Jul 14, 2014 3:53 pm

Linkedin HTTPS error

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);
}

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Linkedin HTTPS error

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?

anton6984647
Posts: 0
Joined: Mon Jul 14, 2014 3:53 pm

Linkedin HTTPS error

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.

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Linkedin HTTPS error

Hi Anton - we see your shared app, we'll take a look.

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Linkedin HTTPS error

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

anton6984647
Posts: 0
Joined: Mon Jul 14, 2014 3:53 pm

Linkedin HTTPS error

Perfect, thank you. I did notice it ran fine on my Android phone as well.

JLP
Posts: 0
Joined: Thu Nov 05, 2015 12:38 am

Linkedin HTTPS error

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.

Return to “Issues”