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 134bac8 commit 2b29567Copy full SHA for 2b29567
server/api/inspect-url.post.ts
@@ -41,9 +41,7 @@ export default defineEventHandler(async (event) => {
41
})
42
const durationInMs = Date.now() - startTime
43
44
- // TODO(serhalp) What about sites with an extra proxy on top? Maybe check for a debug response
45
- // header instead?
46
- if (headers.get('Server') !== 'Netlify') {
+ if (!headers.has('X-NF-Request-Id')) {
47
throw createError({
48
statusCode: 400,
49
message: 'This tool can only be used with Netlify sites',
0 commit comments