Skip to content

Commit 43fab0c

Browse files
committed
Allow Google sign-in through CSP and show a first-comment empty state.
1 parent e7c7b64 commit 43fab0c

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

components/CommentsSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1896,7 +1896,7 @@ export default function CommentsSection({
18961896

18971897
{!loading && !error && displayComments.length === 0 ? (
18981898
<p className="border-b border-white/30 py-8 text-white/50">
1899-
No comments yet.
1899+
Be the first to comment.
19001900
</p>
19011901
) : null}
19021902

next.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
const contentSecurityPolicy = [
22
"default-src 'self'",
3-
"script-src 'self' 'unsafe-inline' https://www.googletagmanager.com https://www.gstatic.com https://apis.google.com",
3+
"script-src 'self' 'unsafe-inline' https://www.googletagmanager.com https://www.gstatic.com https://apis.google.com https://www.google.com/recaptcha/ https://www.recaptcha.net/recaptcha/",
44
"style-src 'self' 'unsafe-inline' https://fonts.googleapis.com",
55
"font-src 'self' data: https://fonts.gstatic.com",
66
"img-src 'self' data: blob: https:",
77
"media-src 'self' https:",
8-
"connect-src 'self' https://*.googleapis.com https://*.firebaseio.com wss://*.firebaseio.com https://*.google-analytics.com https://*.analytics.google.com https://www.googletagmanager.com",
9-
"frame-src https://www.youtube.com https://www.youtube-nocookie.com https://accounts.google.com https://*.firebaseapp.com https://www.google.com/recaptcha/",
8+
"connect-src 'self' https://*.googleapis.com https://*.firebaseio.com wss://*.firebaseio.com https://*.google-analytics.com https://*.analytics.google.com https://www.googletagmanager.com https://www.google.com https://www.recaptcha.net https://auth.lap.onl https://*.cloudfunctions.net https://*.run.app",
9+
"frame-src https://www.youtube.com https://www.youtube-nocookie.com https://accounts.google.com https://*.firebaseapp.com https://auth.lap.onl https://www.google.com/recaptcha/ https://recaptcha.google.com https://www.recaptcha.net",
1010
"worker-src 'self' blob:",
1111
"frame-ancestors 'none'",
1212
"base-uri 'self'",

0 commit comments

Comments
 (0)