So I get this error when trying to render a pdf in html with
Refused to display 'http://127.0.0.1:8000/' in a frame because it set 'X-Frame-Options' to 'deny'.
I already tried
nothing seems to work so I don't know what to do anymore.
So I did some more research and what worked for me was:
Doing a hard reload from the webpage:
This clears the cache which often causes issues in development https://www.sunilchauhan.com/learn/what-does-ctrl-shift-r-do-in-chrome/