Angular Iframe is loaded correctly, but it is not working in CHROME


I have embedded an iframe in Angular like this

@Component({
  selector: 'a-selector',
  template: `<iframe *ngIf="true" [src]="'https://stackoverflow.com/examplewebsite/login' | safeUrl" style="width: 100%; height: 100vh;" scrolling="no" frameborder="0"></iframe>`,
  styleUrls: ['./a.component.css']
})

export class AComponent implements OnInit {
  ...
  constructor(...) {...}
  ngOnInit() {...}

Iframe is loaded properly, and working properly(I have to log in in it) in Firefox, but not logging in in Chrome
There are some errors in console HTML code 401

Source: JavaSript – Stack Overflow

November 22, 2021
Category : News
Tags: angular | html | javascript

Leave a Reply

Your email address will not be published. Required fields are marked *

Sitemap | Terms | Privacy | Cookies | Advertising

Senior Software Developer

Creator of @LzoMedia I am a backend software developer based in London who likes beautiful code and has an adherence to standards & love's open-source.