<p dir="auto">Hey,</p>
<p dir="auto">I'm trying to create simple html page, that use iframe with link from superset.</p>
<p dir="auto">In this dashboard , there are 2 echarts:<br>
1 Timeseries - MarkDown element  with iframe<br>
1 Big Number -Markdown Element  with iframe</p>
<p dir="auto">Print from superset:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/78511708/150815638-28398af8-947a-4fd3-a21e-75dfe78f6593.png"><img src="https://user-images.githubusercontent.com/78511708/150815638-28398af8-947a-4fd3-a21e-75dfe78f6593.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Print from my created page, that contain a iframe with url dashboard:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/78511708/150815750-ba1488a5-8d32-4c91-91ed-cb0df26a2bd4.png"><img src="https://user-images.githubusercontent.com/78511708/150815750-ba1488a5-8d32-4c91-91ed-cb0df26a2bd4.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">I don't know how this happen, one iframe work's and the other have the error: "Unexpected token &lt; in JSON at position 0"</p>
<p dir="auto">In devtools from chrome, i have this result:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/78511708/150816213-79b64200-5907-4808-92c9-da2e7b215b88.png"><img src="https://user-images.githubusercontent.com/78511708/150816213-79b64200-5907-4808-92c9-da2e7b215b88.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">At the moment in file config.py, I have wtf_crsf_enable = true(default), and use this cors configuration:</p>
<h1 dir="auto">CORS Options</h1>
<p dir="auto">ENABLE_CORS = True<br>
CORS_OPTIONS: Dict[Any, Any] = {}<br>
#I add my domain to list SUPERSET_WEBSERVER_DOMAINS, example:<br>
SUPERSET_WEBSERVER_DOMAINS = {"domain1","domain2","domain3"}</p>
<p dir="auto">My config.py: <a href="https://github.com/apache/superset/files/7926696/config.py.txt">config.py.txt</a></p>
<p dir="auto">I think this is the most important changes that I did, but it's not enought... if any one can help me, I would appreciate it</p>
<p dir="auto">Best regards</p>
<p dir="auto">use case is to embed superset dasboards in a web application as iframe but while doing so on some visualization getting Unexpected token &lt; in JSON at position 0 error.</p>
<p dir="auto">normally in superset application same dashboard is working fine but while sahring as iframe only this issue is coming.</p>
<p dir="auto">superset version 1.32</p>
<p dir="auto">html page content for testing:</p>

&lt;iframe name="iframe1" src="https://xxxxxxxxxxx-
![supersetiframeerror](https://user-images.githubusercontent.com/48901138/150507033-1e215d15-2824-41f8-9e61-6e7834add800.JPG)
superset.ad.infosys.com/superset/dashboard/13/" frameborder="0" 
    marginheight="0" 
    marginwidth="0" 
    width="100%" 
    height="100%" 
    scrolling="auto"&gt;&lt;/iframe&gt;