We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9065c8d commit 3f3db08Copy full SHA for 3f3db08
packages/kit/test/apps/basics/src/hooks.server.js
@@ -56,6 +56,12 @@ export const handle = sequence(
56
}
57
return resolve(event);
58
},
59
+ ({ event, resolve }) => {
60
+ if (!(event.request.headers.has('user-agent') ^ event.isSyntheticRequest)) {
61
+ throw new Error('Synthetic requests should have isSyntheticRequest set to true');
62
+ }
63
+ return resolve(event);
64
+ },
65
({ event, resolve }) => {
66
if (event.url.pathname.includes('fetch-credentialed')) {
67
// Only get the cookie at the test where we know it's set to avoid polluting our logs with (correct) warnings
0 commit comments