I’m working on a .NET project that includes protected PDF files. I’ve made them accessible by adding a query string containing a token. The link looks like this: https://example.com/Resources/file.pdf?token=token
When opening the link in a browser, it opens the file.
I’ve deployed the project on an Ubuntu server.
I’ve also created an Angular project and installed a library for previewing PDF files called ngx-extended-pdf-viewer.
When I preview the file using this library, it works on localhost.
However, when I upload it to the server, it doesn’t work.
When I check the console, it shows “blocked”.