Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion dist/well-known.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,23 @@ return Promise.all([
return result;
});
}),
// security
// Email Verification Protocol (EVP) - https://github.com/WICG/email-verification
parseResponse('/.well-known/email-verification', r => {
return r.text().then(text => {
let result = {
issuance_endpoint: null,
signing_alg_values_supported: []
};
try {
const data = JSON.parse(text);
result.issuance_endpoint = data.issuance_endpoint || null;
result.signing_alg_values_supported = Array.isArray(data.signing_alg_values_supported) ? data.signing_alg_values_supported : [];
} catch (e) {
// Failed to parse JSON
}
return result;
});
}),
parseResponse('/robots.txt', r => {
return r.text().then(text => {
let data = { 'matched_disallows': {} };
Expand Down
Loading