Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error(s) in doc. #253

Closed
2 tasks done
GHNewbiee opened this issue Jun 22, 2023 · 1 comment · Fixed by #254
Closed
2 tasks done

Error(s) in doc. #253

GHNewbiee opened this issue Jun 22, 2023 · 1 comment · Fixed by #254

Comments

@GHNewbiee
Copy link

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

@Uzlopak
Copy link
Contributor

Uzlopak commented Jun 22, 2023

provided PR #254

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants