<!DOCTYPE html>
<html>
<head>
<title>成果日 timer</title>
<meta name="viewport" content="width=device-width,initial-scale=1" >
<link href="css/main.css" rel="stylesheet">
</head>
<body>
<script src="js/main.js" type="module"></script>
</body>
</html>
I try to connect my javascript file,but it show erro in my browser console and it says "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, isolated-app. main.js:1 Failed to load resource: net::ERR_FAILED"
Via Active questions tagged javascript - Stack Overflow https://ift.tt/9oyPNCs
Comments
Post a Comment