Skip to content

Be able to affect server-side headers in the event handler #92

@mishu-

Description

@mishu-

Describe the feature

I am trying to set a Bearer token that I only obtain server-side after module initialization, so any nuxt.config.ts options are definitely not an option.
In order to be able to take advantage of the client side composable and not have to redefine all my endpoints on the server side solely to redo what runtime/server/handler.ts already does I think I might need a hook of some sort that I can use to modify the proxied requests headers on server side just before sending the request to the backend api.

any pointers on this matter are very welcomed!

Additional information

  • Would you be willing to help implement this feature?
  • Can you think of other implementations of this feature?

Final checks

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions