How to embed PDF viewer in your web application in Chrome and FireFox Browser.

This blog is my coding log to leave message to myself in the future and those who may be wasting time for the same challenge I just resolved a minute ago.

The Challenge:

  1. I have a PDF file in my AWS S3 Bucket.
  2. I successfully fetch a presigned url for the PDF file.
  3. My goal is to load the PDF file in my web application, using only html tags such as <iframe src = "https://xxxxx"/> or <embed src=“https://xxxxx"/> without