javascript - Check if cross-origin iframe is loaded with correct status code -


i'm trying embed google calendar iframe using shared link works google account in our domain.

 <div class="embed-responsive embed-responsive-16by9">      <iframe class="embed-responsive-item" src="https://calendar.google.com/calendar/b/1/embed?src=..."></iframe>  </div> 

if user logged in 1 of google accounts in domain calendar displays properly. otherwise, iframe empty (status code 302). in such case, need display placeholder , message notify user.

javascript access loaded content blocked same-origin policy.

how can check if iframe content loaded? thank in advance.


Comments

Popular posts from this blog

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -

ios - Change Storyboard View using Seague -