1. Double rendering of the plugin:
- Plugins are rendered to accommodate automatic height resizing. This functionality requires that the plugin index file has the requisite script for the iframe re-sizer. Cortex first renders with the expectation that the script is present, and if it’s not, re-rendering occurs in a previous way which may lead to double rendering of the plugin.
To resolve, add the following script to the plugin’s index.html
:
<html>
<head>
<script
defer
type="text/javascript"
src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.3.7/iframeResizer.contentWindow.js"
></script>
</head>
<div id="cortex-plugin-root"></div>
</html>
2. Error: "Refused to display 'https://app.getcortexapp.com' in a frame because it set 'X-Frame-Options' to 'deny' “ in DevTools Console
- This error indicates the plugin is navigating the iframe to a url served by a server that isn’t accepting an iframe coming from the Cortex domain.
- This could also indicate the provided url is invalid.
- Full page navigation within the plugin is not recommended.
Comments
0 comments
Article is closed for comments.