Requirement
To dynamically load the PDF file based on what user's have selected from list of PDF and show it in object tag / embed tag.
Users cannot download the PDF files, and hence object tag. However, other security settings are yet to be added.
Issue
I continuously get error "ERROR Error: Required a safe ResourceURL, got a URL (see http://g.co/ng/security#xss)" while trying to load PDF in object tag.
Research
I have already gone through several posts before coming and asking this question.
Reproducible steps
I have created the stackblitz, and you can see the error being generated.
Question
I am not sure what I am doing wrong here?
I have tried several things including using safe-pipe from Medium.com