Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b967016

Browse files
redirect with 303 to not use POST (CodingCatDev#492)
Co-authored-by: Alex Patterson <[email protected]>
1 parent 3d6eceb commit b967016

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/codingcatdev/src/routes/(protected)/+layout.server.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const prerender = false;
77
export const load = async ({ url, parent }) => {
88
const data = await parent();
99
if (!allowLocal && !data?.user?.uid) {
10-
throw redirect(307, `/login?redirectTo=${url.pathname}`);
10+
throw redirect(303, `/login?redirectTo=${url.pathname}`);
1111
}
1212
if (data?.user?.stripeRole && url.searchParams.has('redirectTo')) {
1313
throw redirect(303, url.searchParams.get('redirectTo') || '/');

0 commit comments

Comments
 (0)