Can’t program a page because of fanatic security settings which i was unable to disable.
I am trying to make a simple starting project for react, the scripts are included using unpkg, but as always some problems out of nowhere has to pop up.
this is the script:
<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>Document</title>
<script crossorigin src="https://unpkg.com/react@16/umd/react.production.min.js"></script>
<script crossorigin src="https://unpkg.com/react-dom@16/umd/react-dom.production.min.js"></script>
<script crossorigin src="https://unpkg.com/browse/babel-standalone@6.26.0/babel.min.js"></script>
<div id="test"></div>
<script type="text/babel">
ReactDom.render(<h1>Abcd, </h2>, document.getElementById("test"));
</script>
And these are the errors:
The resource from “https://unpkg.com/browse/babel-standalone@6.26.0/babel.min.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://unpkg.com/browse/babel-standalone@6.26.0/babel.min.js. (Reason: CORS request did not succeed). Status code: (null).
The resource from “https://unpkg.com/browse/babel-standalone@6.26.0/babel.min.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://unpkg.com/browse/babel-standalone@6.26.0/babel.min.js. (Reason: CORS request did not succeed). Status code: (null).
source URI is not allowed in this document: “https://unpkg.com/browse/babel-standalone@6.26.0/babel.min.js”. [index.html:10:1](http://127.0.0.1:5500/index.html) Live reload enabled. I am not wasting my time on randomness, so whoever made it this way should probably now spend his time to fix it, there are many topics struggling with this nonsense, but no clear solution how to fix it (some people suggested to disable some plugins which i don't have), i already lost 2h and no one know ANYTHING how to practically disable this nasty thing, there was 1 answer which suggested to disable the security in the starting parameters of the app, but this from what was said later this doesn't work and it was made for chrome...