I am trying to display a couple of Grafana graphs in a UIBUILDER webpage. I can load the graphs into a Browser if I put the link into the address bar, but they won't load in the webpage. The error in the browser shows:
Framing '``http://<IP>:3001/``' violates the following Content Security Policy directive: "frame-src 'self' https:". The request has been blocked.
I think I get that as the link points to a different port, the file indicated as causing the error is uibrouter.iife.min.js, but I can't find frame-source in that file, although I can see the word strict.
I reference the uibrouter.iife.min.js file in my index.html header
<script defer src="../uibuilder/uibuilder.iife.min.js"></script>
<script defer src="../uibuilder/utils/uibrouter.iife.min.js"></script>
<script defer src="./js/index.js">
It seems that in my SPA website, I also need this available for my index.js
// ----- Start of Routing ----- //
const router = new UibRouter(routerConfig)
// ---------- Setup: Centralised Message Handling for SPA ---------- //
uibuilder.onChange("msg", handleUibMsg);
The SPA Message Handling is a script @Paul-Reed kindly allowed me to use.
Commenting either of these out does not help! Nothing appears to load except the Navigation Menu text.
I have looked at the Documents and the only references I can find are to Navigation Menus, or at least, that is all I can get from reading them. They do show examples of 'external template', but I don't understand. The drugs don't help!
I think that is all of the information, so the question is... How do I get a 'remote' (same IP, different Port) link/image to appear in a UIBUILDER webpage?
As usual, I am probably missing something very basic, but I don't know how to proceed!
TIA,
Colin J