CSP implementation
This commit is contained in:
parent
299cae0c80
commit
fdfc679b03
3 changed files with 12 additions and 4 deletions
4
package-lock.json
generated
4
package-lock.json
generated
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "zgo",
|
||||
"version": "2.1.0",
|
||||
"version": "2.3.1",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "zgo",
|
||||
"version": "2.1.0",
|
||||
"version": "2.3.1",
|
||||
"dependencies": {
|
||||
"@angular/animations": "^16.0.0",
|
||||
"@angular/cdk": "^16.0.0",
|
||||
|
|
|
@ -136,7 +136,7 @@ export class ViewerComponent implements OnInit {
|
|||
this.user = user;
|
||||
//console.log('Viewer loginCheck', this.user);
|
||||
if (!this.owner.paid || !this.user.validated) {
|
||||
//console.log('Log in expired!');
|
||||
// console.log('Log in expired!');
|
||||
this.router.navigate(['/login']);
|
||||
}
|
||||
});
|
||||
|
|
|
@ -1,6 +1,14 @@
|
|||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Security-Policy"
|
||||
content=
|
||||
"connect-src 'self' https://test.zgo.cash https://zgo.cash ;
|
||||
default-src 'self';
|
||||
style-src 'self' https://fonts.googleapis.com 'unsafe-inline' ;
|
||||
img-src 'self' https://fonts.googleapis.com http://www.w3.org data: ;
|
||||
font-src 'self' http://www.w3.org https://fonts.gstatic.com https://fonts.gstatic.com ; ">
|
||||
|
||||
<meta charset="utf-8">
|
||||
<title>ZGo - The Zcash Register</title>
|
||||
<base href="/">
|
||||
|
@ -14,4 +22,4 @@
|
|||
<body>
|
||||
<app-root></app-root>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
Loading…
Reference in a new issue