Chrome not allowing to login on iframe tag – Angular

Published

I have 2 websites and I want to embbed one to another with login authenticator. Everytime I tried to login into the embbeded page, pop a message: "session expired".

Does anyone know how to solve this problem?

I’m using Iframe tag and Angular V11.

Thank you!!

JS

    this.url = this.url.replace("@user", this.user.nom_email).replace("@senha", this.user.des_senha_criptografada);
this.urlSafe= this.sanitizer.bypassSecurityTrustResourceUrl(this.url);

HTML

<iframe id="ecommerce_frame" [src]="urlSafe" frameborder="0" scrolling="yes" align="left" referrerpolicy="no-referrer-when-downgrade"></iframe>

Source: Angular Questions

Published
Categorized as angular, iframe Tagged ,

Answers

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq