Cross domain issue with IFrame in Angular2
问题 We intend to access another app url which is hosted on the same machine, but on different port. So my Angular 2 application http://localhost:8081/app/ is trying to open a site hosted on same server but different port i.e. localhost:9100 We are trying to access following url in an iframe url = http://localhost:9100/custom/getCustomPage <iframe id="customFrame" *ngIf="url !== null" frameborder="0" [src]="url"></iframe> Error on Chrome/Firefox DOMException: Blocked a frame with origin "http:/