You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using fetch in SSR treats requests as relative with the default config value of "" (empty string) for options.paths.base, instead of as an external request.
that always resolves to true with the default value.
Reproduction
<scriptcontext="module">
export async function load({fetch}) {constresult=awaitfetch('https://duckduckgo.com/');// --> result is not from duckduckgo, but from the svelte-kit app}</script>
Describe the bug
Using
fetch
in SSR treats requests as relative with the default config value of "" (empty string) foroptions.paths.base
, instead of as an external request.The reason is the statement
kit/packages/kit/src/runtime/server/page/load_node.js
Line 113 in 2a1e979
true
with the default value.Reproduction
Logs
No response
System Info
Severity
blocking all usage of SvelteKit
Additional Information
No response
The text was updated successfully, but these errors were encountered: