HTML File:
<!DOCTYPE html>
<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">
<link rel="stylesheet" href="adv.css" type="text/css">
<title>Document</title>
<script type="module" src="./adv22.js"></script>
</head>
<body>
</body>
</html>
Js Files:: Js File-1 import {value1} from "./adv22"; console.log(value1) JS file-2 export let value1 = 'Hellow World!'; Errors: adv.html:1 Access to script at 'file:///E:/Advance/Boots/adv22.js' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, chrome-untrusted, https. GET file:///E:/Advance/Boots/adv22.js net::ERR_FAILED