Merge branch 'canon-merge-field-input' of https://github.com/backstage/backstage into canon-merge-field-input

This commit is contained in:
Charles de Dreuille
2025-03-24 18:06:41 +00:00
@@ -98,7 +98,8 @@ async function submitForm(value: string) {
try {
const url = new URL(value);
if (url.hostname.endsWith('example.com')) {
const allowedHosts = ['example.com', 'beta.example.com', 'www.example.com'];
if (!allowedHosts.includes(url.hostname)) {
return { error: 'The example domain is not allowed' };
}
} catch {