diff --git a/package.json b/package.json index f1acfbbe..d5d4fde0 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,7 @@ "core-js": "3.2.1", "moment": "2.26.0", "ng-jhipster": "0.10.1", + "ng2-adsense": "6.0.3", "ngx-cookie": "4.0.2", "ngx-infinite-scroll": "7.1.0", "ngx-webstorage": "4.0.2", diff --git a/src/main/java/com/asanka/tutor/config/SecurityConfiguration.java b/src/main/java/com/asanka/tutor/config/SecurityConfiguration.java index ec049c18..cb7fa45f 100644 --- a/src/main/java/com/asanka/tutor/config/SecurityConfiguration.java +++ b/src/main/java/com/asanka/tutor/config/SecurityConfiguration.java @@ -63,7 +63,7 @@ public void configure(HttpSecurity http) throws Exception { .accessDeniedHandler(problemSupport) .and() .headers() - .contentSecurityPolicy("default-src 'self' https://usebasin.com/ https://www.google-analytics.com/; frame-src 'self' https://www.youtube.com/ https://js.stripe.com/ https://repl.it/@SudharakaP/; img-src 'self' https://avatars.dicebear.com https://www.google-analytics.com/; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://js.stripe.com/v3/ https://www.google-analytics.com/ https://drive.google.com/; style-src 'self' 'unsafe-inline'") + .contentSecurityPolicy("default-src 'self' https://usebasin.com/ https://www.google-analytics.com/ https://pagead2.googlesyndication.com/ https://adservice.google.ca https://adservice.google.com https://www.googletagservices.com https://tpc.googlesyndication.com; frame-src 'self' https://www.youtube.com/ https://js.stripe.com/ https://repl.it/@SudharakaP/; img-src 'self' https://avatars.dicebear.com https://www.google-analytics.com/; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://js.stripe.com/v3/ https://www.google-analytics.com/ https://drive.google.com/ https://pagead2.googlesyndication.com/ https://adservice.google.ca https://adservice.google.com https://www.googletagservices.com https://tpc.googlesyndication.com; style-src 'self' 'unsafe-inline'") .and() .referrerPolicy(ReferrerPolicyHeaderWriter.ReferrerPolicy.STRICT_ORIGIN_WHEN_CROSS_ORIGIN) .and() diff --git a/src/main/webapp/app/home/home.component.html b/src/main/webapp/app/home/home.component.html index adeb7e6d..cb691759 100644 --- a/src/main/webapp/app/home/home.component.html +++ b/src/main/webapp/app/home/home.component.html @@ -90,6 +90,7 @@