I'm trying to build the Embedded form on the website. So I have created a form on the Sitecore website and Sitecore API Key based on here
browse load the HTML website faced the below error
My HTML code:
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Sitecore Embeddable Forms Sample</title>
</head>
<body>
<div class="my-page-container">
<h1>Sitecore Embeddable Forms Sample</h1>
<div class="my-embeddable-form-container">
<scef-form formId="{9320F8B7-7199-42AE-B653-0281A3451E4E}"></scef-form>
</div>
</div>
<script type="text/javascript" src="./sitecore-embeddableforms.umd.js?sc_site=https://sitename&sc_apikey=2A72FB75-5D3C-402F-A6C1-EB34ED5C1140"></script>
</body>
</html>
src="https://yousitecoresite/sitecore-embeddableforms.umd.js?sc_apikey=APIKey"
Also I hope you already placesitecore-embeddableforms.umd.js
file into root folder of Sitecore site.