Update our use of Sign In With Google to use FedCM. (#3668)
This commit is contained in:
Родитель
4467e4884e
Коммит
a09e8cb0a0
|
@ -205,6 +205,7 @@ export class ChromedashHeader extends LitElement {
|
|||
google.accounts.id.initialize({
|
||||
client_id: this.googleSignInClientId,
|
||||
callback: this.handleCredentialResponse,
|
||||
use_fedcm_for_prompt: true,
|
||||
});
|
||||
google.accounts.id.prompt();
|
||||
|
||||
|
|
|
@ -31,6 +31,7 @@ NONCE_LENGTH = 30
|
|||
# Note: This is an addition beyond the reference csp.py example code.
|
||||
HOST_SOURCES = [
|
||||
'https://www.gstatic.com',
|
||||
'https://accounts.google.com/gsi/client',
|
||||
]
|
||||
|
||||
DEFAULT_POLICY = {
|
||||
|
|
Загрузка…
Ссылка в новой задаче