Skip to content

Commit 782a0e7

Browse files
authored
Revert "Fix CSP issues (apache#36902)" (apache#36929)
This reverts commit c72970d.
1 parent d9c1e4e commit 782a0e7

File tree

8 files changed

+9
-70
lines changed

8 files changed

+9
-70
lines changed

build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ tasks.rat {
7575
"**/Gemfile.lock",
7676
"**/Rakefile",
7777
"**/.htaccess",
78-
"website/www/site/assets/css/**/*",
7978
"website/www/site/assets/scss/_bootstrap.scss",
8079
"website/www/site/assets/scss/bootstrap/**/*",
8180
"website/www/site/assets/js/**/*",

website/www/site/assets/css/fontawesome/release-v5.4.1.css

Lines changed: 0 additions & 5 deletions
This file was deleted.

website/www/site/assets/css/roboto/roboto.css

Lines changed: 0 additions & 35 deletions
This file was deleted.

website/www/site/assets/css/swiper@8/swiper-bundle.min.css

Lines changed: 0 additions & 13 deletions
This file was deleted.

website/www/site/assets/js/jquery/jquery-2.2.4.min.js

Lines changed: 0 additions & 4 deletions
This file was deleted.

website/www/site/layouts/partials/head.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<title>{{ if .Title }}{{ .Title }}{{ else }}{{ .Site.Title }}{{ end }}</title>
1818
<meta name="description" content="{{ .Description | default $.Site.Params.description }}">
1919

20-
<link href="css/roboto/roboto.css" rel="stylesheet">
20+
<link href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700" rel="stylesheet">
2121

2222
{{ $scssMain := "scss/main.scss"}}
2323
{{ if .Site.IsServer }}
@@ -29,7 +29,7 @@
2929
<link href="{{ $css.RelPermalink }}" rel="stylesheet" integrity="{{ $css.Data.integrity }}">
3030
{{ end }}
3131

32-
<script src="js/jquery/jquery-2.2.4.min.js"></script>
32+
<script src="https://code.jquery.com/jquery-2.2.4.min.js"></script>
3333

3434
<style>
3535
.body__contained img { max-width: 100% }
@@ -69,8 +69,8 @@
6969
<link rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" href="/feed.xml">
7070
<link rel="canonical" href="{{ .Site.Params.hostName }}{{ .Permalink | absURL }}" data-proofer-ignore>
7171
<link rel="shortcut icon" type="image/x-icon" href="/images/favicon.ico">
72-
<link rel="stylesheet" href="css/fontawesome/release-v5.4.1.css" integrity="sha384-5sAR7xN1Nv6T6+dT2mhtzEpVJvfS3NScPQTrOxhwjIuvcA67KV2R5Jz6kr4abQsz" crossorigin="anonymous">
73-
<link rel="stylesheet" href="css/swiper@8/swiper-bundle.min.css"/>
72+
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.4.1/css/all.css" integrity="sha384-5sAR7xN1Nv6T6+dT2mhtzEpVJvfS3NScPQTrOxhwjIuvcA67KV2R5Jz6kr4abQsz" crossorigin="anonymous">
73+
<link rel="stylesheet" href="https://unpkg.com/swiper@8/swiper-bundle.min.css"/>
7474
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
7575

7676
<!-- Hotjar Tracking Code for https://beam.apache.org/ -->

website/www/site/layouts/partials/head_homepage.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<title>{{ if .Title }}{{ .Title }}{{ else }}{{ .Site.Title }}{{ end }}</title>
1818
<meta name="description" content="{{ .Description | default $.Site.Params.description }}">
1919

20-
<link href="css/roboto/roboto.css" rel="stylesheet">
20+
<link href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700" rel="stylesheet">
2121

2222
{{ $scssMain := "scss/main.scss"}}
2323
{{ if .Site.IsServer }}
@@ -29,7 +29,7 @@
2929
<link href="{{ $css.RelPermalink }}" rel="stylesheet" integrity="{{ $css.Data.integrity }}">
3030
{{ end }}
3131

32-
<script src="js/jquery/jquery-2.2.4.min.js"></script>
32+
<script src="https://code.jquery.com/jquery-2.2.4.min.js"></script>
3333

3434
<style>
3535
.body__contained img { max-width: 100% }
@@ -60,8 +60,8 @@
6060
<link rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" href="/feed.xml">
6161
<link rel="canonical" href="{{ .Site.Params.hostName }}{{ .Permalink | absURL }}" data-proofer-ignore>
6262
<link rel="shortcut icon" type="image/x-icon" href="/images/favicon.ico">
63-
<link rel="stylesheet" href="css/fontawesome/release-v5.4.1.css" integrity="sha384-5sAR7xN1Nv6T6+dT2mhtzEpVJvfS3NScPQTrOxhwjIuvcA67KV2R5Jz6kr4abQsz" crossorigin="anonymous">
64-
<link rel="stylesheet" href="css/swiper@8/swiper-bundle.min.css"/>
63+
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.4.1/css/all.css" integrity="sha384-5sAR7xN1Nv6T6+dT2mhtzEpVJvfS3NScPQTrOxhwjIuvcA67KV2R5Jz6kr4abQsz" crossorigin="anonymous">
64+
<link rel="stylesheet" href="https://unpkg.com/swiper@8/swiper-bundle.min.css"/>
6565
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
6666

6767
<!-- Hotjar Tracking Code for https://beam.apache.org/ -->

website/www/site/static/.htaccess

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,4 @@ RedirectMatch "/contribute/release-guide" "https://github.com/apache/beam/blob/m
2727

2828
RedirectMatch "/contribute/committer-guide" "https://github.com/apache/beam/blob/master/contributor-docs/committer-guide.md"
2929

30-
# Allow embedding content from play.beam.apache.org, youtube.com, drive.google.com, platform.twitter.com,
31-
# static.hotjar.com, cse.google.com, www.google.com/cse, clients1.google.com and fonts.gstatic.com.
32-
# This is the standard way to add local exceptions to the CSP, see https://infra.apache.org/tools/csp.html
33-
SetEnv CSP_PROJECT_DOMAINS "https://play.beam.apache.org/ https://www.youtube.com/ https://drive.google.com/ https://platform.twitter.com/ https://static.hotjar.com/ https://cse.google.com/ http://cse.google.com/ https://www.google.com/cse/ https://fonts.gstatic.com/"
30+
Header set Content-Security-Policy "frame-src 'self' https://play.beam.apache.org/ https://www.youtube.com/ https://drive.google.com/ ;"

0 commit comments

Comments
 (0)