diff options
| -rw-r--r-- | src/lib/api.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/api.ts b/src/lib/api.ts index da89ac3..0b52658 100644 --- a/src/lib/api.ts +++ b/src/lib/api.ts @@ -60,7 +60,9 @@ export async function getRegistrationOptions( // If last param ends with, e.g., `.com` as in an email address, the `.com` // will be interpreted as a file extension, and this will break everything. // Hack to avoid this bug. - const response = await fetch(`${backendUrl}/auth/registration?${queryString}&hack=toavoidbug`, { + const hackyQueryString = `${queryString}&hack=toavoidbug`; + + const response = await fetch(`${backendUrl}/auth/registration?${hackyQueryString}`, { method: 'GET', headers: { 'Content-Type': 'application/json' }, }); |
