Global Directory
Global Directory
EXPLORE OUR SITES
London Stock Exchange Group
LSEG Data & Analytics
MyAccount
LSEG Perspectives
London Stock Exchange
FTSE Russell
LCH
Contact Us
Home
TR Internal
permission denied error when specifying iframe source
Madhu Pusarla
I am trying to make a widget generic in the Static Content JavaScript. The widget renders an iframe and sets the source to an HTML page in the JavaScript module. I am getting permission denied errors. I understand that it is cross domain problem. Just curious if anybody ran into similar issue in the Cobalt environment.
We don't want to setup a proxy service as that will require all the consumers of the widget to have the proxy configured.
Find more posts tagged with
javascript
jquery
refinitiv-internal
Accepted answers
All comments
Ryan Morlok
You might be able to get around it by setting the contents of the iframe directly from JavaScript. Something like this:
document.getElementById("foo").contentWindow.document.body.innerHTML = "foo"
Quick Links
All Forums
Recent Questions
Terms of use
Privacy & Cookie Statement
Cookies settings
Do not sell my info
Whistleblowing
UK Bribery Act
Modern Slavery Act