Error(s) in doc.
GHNewbiee opened this issue · 1 comments
GHNewbiee commented
Prerequisites
- I have written a descriptive issue title
- I have searched existing issues to ensure the issue has not already been raised
Issue
- hook: See the section Custom Fastify hook name (default: onResponse)
As per code:
const defaultOptions = {
origin: '*',
methods: 'GET,HEAD,PUT,PATCH,POST,DELETE',
hook: 'onRequest',
preflightContinue: false,
optionsSuccessStatus: 204,
credentials: false,
exposedHeaders: null,
allowedHeaders: null,
maxAge: null,
preflight: true,
strictPreflight: true
}
default is onRequest
, isn't it? Tia