html - Browser Javascript security warnings and errors -


i have iframe (https://example.com/iframe) runs within http , https protocols (ie. http://example.com , https://example.com/login).

this iframe has conditional forces page refresh

window.top.location.reload(); 

when on https://example.com/login reload works fine. when on http://example.com reload doesn't work (as expected due same origin). ok. iframe doing other background activities user experience in both instances.

this error chrome gives, sure others same:

unsafe javascript attempt access frame url http://example.com frame url https://example.com/iframe. frame requesting access has protocol of 'https', frame being accessed has protocol of 'http'. protocols must match.

my question: ok have error? doesn't bother me, impact user experience, stop browser activities, etc?

this doesn't effect functionality of page. seeing error because main page https:// , iframe loading in page http://, reason. try using relative protocol e.g.; <iframe src="//example.com"/> , try correct warning. ok have error error should solved because may impact user experience in few circumstances depending page code approach.


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -