mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-06-08 19:17:40 +08:00
fix: update nonce
This commit is contained in:
@@ -1,21 +1,28 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="">
|
<html lang="">
|
||||||
<link rel="stylesheet"
|
<script src="https://accounts.google.com/gsi/client" async defer nonce="{{ CSP_NONCE_FROM_SERVER }}">
|
||||||
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css"
|
</script>
|
||||||
referrerpolicy="no-referrer" />
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css"
|
||||||
<head>
|
referrerpolicy="no-referrer" />
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<head>
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
<meta charset="utf-8">
|
||||||
<link rel="icon" href="<%= BASE_URL %>favicon.ico?v=20250712">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<title><%= htmlWebpackPlugin.options.title %></title>
|
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||||
<script src="https://accounts.google.com/gsi/client" async defer></script>
|
<link rel="icon" href="<%= BASE_URL %>favicon.ico?v=20250712">
|
||||||
</head>
|
<title>
|
||||||
<body>
|
<%= htmlWebpackPlugin.options.title %>
|
||||||
<noscript>
|
</title>
|
||||||
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
|
<script src="https://accounts.google.com/gsi/client" async defer></script>
|
||||||
</noscript>
|
</head>
|
||||||
<div id="app"></div>
|
|
||||||
<!-- built files will be auto injected -->
|
<body>
|
||||||
</body>
|
<noscript>
|
||||||
</html>
|
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled.
|
||||||
|
Please enable it to continue.</strong>
|
||||||
|
</noscript>
|
||||||
|
<div id="app"></div>
|
||||||
|
<!-- built files will be auto injected -->
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
||||||
@@ -10,7 +10,8 @@ export async function googleGetIdToken() {
|
|||||||
}
|
}
|
||||||
window.google.accounts.id.initialize({
|
window.google.accounts.id.initialize({
|
||||||
client_id: GOOGLE_CLIENT_ID,
|
client_id: GOOGLE_CLIENT_ID,
|
||||||
callback: ({ credential }) => resolve(credential)
|
callback: ({ credential }) => resolve(credential),
|
||||||
|
use_fedcm: true
|
||||||
})
|
})
|
||||||
window.google.accounts.id.prompt()
|
window.google.accounts.id.prompt()
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user