Answers for "CSP Angular"

0

CSP Angular

<!DOCTYPE html>
<html ng-app="plunker">
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta http-equiv="Content-Security-Policy" 
			content="default-src 'self' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; script-src 'self' https://cdnjs.cloudflare.com 'unsafe-inline' 'unsafe-eval';">

		<title>App</title>
		<meta name="description" content="">
		<meta name="viewport" content="width=device-width">

		<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.1/angular.js"></script>

		<script src="test.js"></script>
	</head>
	<body ng-controller="MainCtrl">

	    barcodeAllowed=<span ng-show="barcodeAllowed">barcode Allowed</span><br/>
	    true=<span ng-show="true">true</span><br/>
	    false=<span ng-show="false">false</span>

	</body>
</html>
Posted by: Guest on August-16-2021

Browse Popular Code Answers by Language