Fix Google Auth 401, Remove Simulation Mode, and Secure CSP Headers - #94
Fix Google Auth 401, Remove Simulation Mode, and Secure CSP Headers#94Simonc44 wants to merge 3 commits into
Conversation
…utton, and strengthen CSP headers - Extracted Google Analytics and Service Worker registration inline scripts to dedicated external files in `public/`. - Removed simulation mode from the unsubscribe route entirely, maintaining backend test mail support. - Configured dynamic Google Client ID for both front-end and back-end integration. - Configured the Google One Tap / Sign-In button with a modern rounded pill shape. - Strengthened CSP headers on both dev/production servers and vercel.json configurations by removing 'unsafe-inline' and 'unsafe-eval' directives. Co-authored-by: Simonc44 <216070312+Simonc44@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…le login button, and implement secure dynamic CSP with nonces - Configured GOOGLE_CLIENT_ID to use process.env via secure TanStack server loader and function, fixing the 401 invalid_client error. - Removed simulation mode visual card and states from /desabonnement to clean up development leftovers. - Modernized Google login button layout using pill shape borders. - hardended Content Security Policy (CSP) headers with 'default-src none' and removed 'unsafe-inline' for scripts and styles. - Extracted inline Google Analytics and Service Worker scripts to standalone script files in public. - Implemented dynamic cryptographic nonces generated per-request and passed them cleanly to TanStack Start's SSR nonce configurations. - Rendered csp-nonce meta tags to support isomorphic client hydration. - Solved undici Request construction bug inside server proxy middleware. Co-authored-by: Simonc44 <216070312+Simonc44@users.noreply.github.com>
…le login button, and implement secure dynamic CSP with nonces - Configured GOOGLE_CLIENT_ID to use process.env via secure TanStack server loader and function, fixing the 401 invalid_client error. - Removed simulation mode visual card and states from /desabonnement to clean up development leftovers. - Modernized Google login button layout using pill shape borders. - hardended Content Security Policy (CSP) headers with 'default-src none' and removed 'unsafe-inline' for scripts and styles. - Extracted inline Google Analytics and Service Worker scripts to standalone script files in public. - Implemented dynamic cryptographic nonces generated per-request and passed them cleanly to TanStack Start's SSR nonce configurations. - Rendered csp-nonce meta tags to support isomorphic client hydration. - Solved undici Request construction bug inside server proxy middleware. Co-authored-by: Simonc44 <216070312+Simonc44@users.noreply.github.com>
This pull request addresses the client-side Google OAuth 401 error, removes simulation mode, modernizes the Google Sign-In button to use rounded corners, and reinforces CSP header restrictions across server.ts and vercel.json.
PR created automatically by Jules for task 8930457463479681257 started by @Simonc44