diff --git a/packages/canon/src/components/TextField/TextField.stories.tsx b/packages/canon/src/components/TextField/TextField.stories.tsx index a9af58dcf9..e378fc1c58 100644 --- a/packages/canon/src/components/TextField/TextField.stories.tsx +++ b/packages/canon/src/components/TextField/TextField.stories.tsx @@ -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 {