I added the following to a web page:
<script type="text/javascript">
window.addEventListener("load", function () {
window.location = "https://localhost:5002";
});
</script>
When I run the application I get the following error:
Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "default-src 'self'"
When I remove the script I do not get the error anymore.
Any idea why this happens?