标签:doctype OWIN follow policy safe hello dex The enable
Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' 'unsafe-eval'". Either the 'unsafe-inline' keyword, a hash ('sha256- vKuX0yKlIAX3ZzZ9/PIUq7x1z425uZLu4glsP+4fqXM='), or a nonce ('nonce-...') is required to enable inline execution.
# index.html
<!DOCTYPE html>
<html>
<head>
<script src="js/vue.min.js"> </script>
</head>
<body>
<div id="chen_test_id1">
<p>{{ message }}</p>
</div>
<script src="js/test.js"> </script>
</body>
</html>
// js/test.js
src="js/vue.min.js">
new Vue({
el: '#chen_test_id1',
data: {
message: 'Hello Vue.js!'
}
})
标签:doctype OWIN follow policy safe hello dex The enable
原文地址:https://www.cnblogs.com/chenfulin5/p/9102878.html