My HTML file includes an embedded web widget from tradingview.com with the following code:
<!-- TradingView Widget BEGIN -->
<span id="tradingview-copyright"><a ref="nofollow noopener" target="_blank" href="http://www.tradingview.com" style="color: rgb(173, 174, 176); font-family: "Trebuchet MS", Tahoma, Arial, sans-serif; font-size: 13px;">Economic Calendar by <span style="color: #3BB3E4">TradingView</span></a></span>
<script type="text/javascript" src="https://s3.tradingview.com/external-embedding/embed-widget-events.js">
{
"width": "510",
"height": "600"
}
</script>
<!-- TradingView Widget END -->
When I view this code in jsfiddle or open the file locally, the finance widget displays properly. However, when I access it through a http-server running on my machine and visit http://localhost, the widget doesn't show up even though the file loads successfully. It seems like there is an issue with the script execution in this scenario.
Does anyone have any insights into what might be causing this problem?
Thank you.