Skip to content

Commit

Permalink
Add FedCM changes
Browse files Browse the repository at this point in the history
  • Loading branch information
caleballdrin committed Dec 12, 2023
1 parent 98a8b38 commit 5dea6fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ AddDefaultCharset utf-8
# see the specification: http://w3.org/TR/CSP).

# <IfModule mod_headers.c>
# Header set Content-Security-Policy "script-src 'self'; object-src 'self'"
# Header set Content-Security-Policy "script-src 'self' https://accounts.google.com/gsi/client; object-src 'self'"
# <FilesMatch "\.(appcache|crx|css|eot|gif|htc|ico|jpe?g|js|m4a|m4v|manifest|mp4|oex|oga|ogg|ogv|otf|pdf|png|safariextz|svg|svgz|ttf|vcf|webapp|webm|webp|woff|xml|xpi)$">
# Header unset Content-Security-Policy
# </FilesMatch>
Expand Down
1 change: 1 addition & 0 deletions app/scripts/components/GoogleLogin/GoogleLogin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ const GoogleLogin = ({ $http, $document, envService }: GoogleLoginProps) => {
<>
<div
id="g_id_onload"
data-use_fedcm_for_prompt="true"
data-client_id={clientId}
data-auto_prompt="true"
data-nonce={googleNonce}
Expand Down

0 comments on commit 5dea6fc

Please sign in to comment.