How to fix Refused to display in a frame because it set 'X-Frame-Options' to 'sameorigin
问题 I'm getting error while useing i-frame in angular Refused to display in a frame because it set 'X-Frame-Options' to 'sameorigin' Refused to display 'https://docs.google.com/gview?url=https://subtreebucket.s3.amazonaws.com/docsFile_1559124133664_dummy.pdf' in a frame because it set 'X-Frame-Options' to 'sameorigin'. 回答1: Please use santizer with safe pipe and then include the link as below <iframe class="doc" src="https://docs.google.com/gview?url=https://subtreebucket.s3.amazonaws.com