Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix csp and horizontal scroll toc #3283

Merged
merged 3 commits into from
Jul 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/main/content/antora_ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion src/main/content/antora_ui/src/sass/nav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,13 @@ html.is-clipped--nav {
.nav-panel-menu::-webkit-scrollbar,
.nav-panel-explore .components::-webkit-scrollbar {
width: 0.25rem;
height: 0.25rem;
}

.nav-panel-menu::-webkit-scrollbar-thumb,
.nav-panel-explore .components::-webkit-scrollbar-thumb {
.nav-panel-menu::-webkit-scrollbar-thumb:horizontal,
.nav-panel-explore .components::-webkit-scrollbar-thumb,
.nav-panel-explore .components::-webkit-scrollbar-thumb:horizontal {
background-color: var(--nav-border-color);
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/openliberty/website/TLSFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public void doFilter(ServletRequest req, ServletResponse resp, FilterChain chain
response.setHeader("X-Content-Type-Options", "nosniff");
// Mitigating cross site scripting (XSS) from other domains.
response.setHeader("Content-Security-Policy",
"default-src 'self' 'unsafe-inline' 'unsafe-eval' cdn.jsdelivr.net fonts.googleapis.com ajax.googleapis.com code.jquery.com fonts.gstatic.com *.githubusercontent.com api.github.com www.googletagmanager.com tagmanager.google.com www.google-analytics.com cdnjs.cloudflare.com data: buttons.github.io www.youtube.com *.twitter.com *.twimg.com video.ibm.com https://start.openliberty.io/ gitlab.com starter-staging.rh9j6zz75er.us-east.codeengine.appdomain.cloud");
"default-src 'self' 'unsafe-inline' 'unsafe-eval' cdn.jsdelivr.net fonts.googleapis.com ajax.googleapis.com code.jquery.com fonts.gstatic.com *.githubusercontent.com api.github.com www.googletagmanager.com tagmanager.google.com www.google-analytics.com cdnjs.cloudflare.com data: buttons.github.io www.youtube.com *.twitter.com *.twimg.com video.ibm.com https://start.openliberty.io/ gitlab.com starter-staging.rh9j6zz75er.us-east.codeengine.appdomain.cloud https://docs.oracle.com/javase/8/docs/api/");

// Limits the information sent cross-domain and does not send the origin name.
response.setHeader("Referrer-Policy", "no-referrer");
Expand Down