Journey Planner Widget Headers

Hi, I’ve had a ticket to fix the tfl widget on a website. Upon further inspection I found this error: Refused to display '' in a frame because it set 'X-Frame-Options' to 'sameorigin'. I since tried to generate a new version through TfL widgets to be decommissioned on 31 july 2019 - News - TfL Tech Forum but got given the same code back and no fix.

Any chance you could post up a screengrab of the error in the context of the frame?

Are you just using a straight iframe generation in your HTML output or generating it using javascript script? I can think of three ways of doing in javascript both of which might be problematic.


Hi @briantist I’m using the provided script from the tfl form.
<script>(function(w){'...';w.url=''; return w; })(window.tfl = window.tfl || {});</script><script src=''></script>

This is from the site with chrome inspector open.