blob: 7622d988ff2c129003f0e3251bb7a0be698d17d6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<!doctype html>
<link rel="help" href="https://wicg.github.io/FedCM">
<script src="/common/get-host-info.sub.js"></script>
<div id=log>
<script>
'use strict';
const host = get_host_info();
const remoteBaseURL =
host.AUTHENTICATED_ORIGIN +
window.location.pathname.replace(/\/[^\/]*$/, '/');
window.onload = async () => {
const urlParams = new URLSearchParams(window.location.search);
var iframe = document.createElement("iframe");
iframe.src = remoteBaseURL + "fedcm-iframe.html";
if (urlParams.get("permission") != '0') {
iframe.allow = "identity-credentials-get";
}
document.body.appendChild(iframe);
};
</script>
|