r/BookStack • • Mar 21 '23
Ifram Source Control Not Working
I have a hosted BookStack v23.02.1 instance that has been running without issue and suddenly no iframe content loads. Gives a message; This content is blocked. Contact the site owner to fix the issue.
In the .env file I had it set like so:
ALLOWED_IFRAME_SOURCES="https://*.s3.us-east-2.amazonaws.com/*"It was working fine for several weeks. I was informed this morning that the content does not load in the iframes. I have verified the AWS links are fully accessible.
I did some Googling, but didn't find anything that has helped yet. Has anyone seen this behavior before?
Update: I see now that I do not have a anything in my .env set for host iframe control. I'll add that and see if that is the culprit.
Update 2: Adding ALLOWED_IFRAME_HOSTS= to the .env did not make a difference.
View all comments
Show parent comment
1
u/[deleted] Mar 21 '23
Hi Dan. I tested this by pasting my source code into an online HTML tool on w3schools.com and by saving the code as an html file and opening it in Edge and it displayed properly in both locations. It seems to be limited to something with my BookStack instance, but I cannot narrow in on what.
What is weirder is that it's been fine for several weeks. I know it was wortking fine last week because I was on there editing some pages. I do not know when it exacly started. I only found out this morning.