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

getRequestHeader is not defined #22

Closed
mbaertschi opened this issue May 22, 2023 · 0 comments
Closed

getRequestHeader is not defined #22

mbaertschi opened this issue May 22, 2023 · 0 comments

Comments

@mbaertschi
Copy link
Contributor

Environment

                                                                                                                                                                                            9:22:07 AM

RootDir: /Users/mike/dev/demo/sbr2-datastore 9:22:07 AM
Nuxt project info: (copied to clipboard) 9:22:07 AM


  • Operating System: Darwin
  • Node Version: v18.16.0
  • Nuxt Version: 3.5.1
  • Nitro Version: 2.4.1
  • Package Manager: yarn@1.22.19
  • Builder: vite
  • User Config: app, css, modules, runtimeConfig, typescript, $development, $production
  • Runtime Modules: @vueuse/nuxt@10.1.2, @unocss/nuxt@0.52.0, nuxt-api-party@0.11.2, nuxt-headlessui@1.1.4
  • Build Modules: -

Reproduction

Describe the bug

If cookies is enabled, nuxt-api-module server module tries to extract the cookie request header with getRequestHeader from the h3 module (see here).

At runtime the getRequestHeader function is not available as it is not imported from h3. Please import it so that this feature works as expected :-)

Additional context

No response

Logs

No response

@johannschopplich johannschopplich changed the title getRequestHeader is not defined' getRequestHeader is not defined Aug 19, 2023
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

No branches or pull requests

2 participants