Skip to content

[question] options.accessControlAllowOrigin (and others) not send when using middleware #170

@chrisovergaauw

Description

@chrisovergaauw

Hi,

I'm running into CORS issues due to the fact that all the required headers are missing when using the documented example:

middleware: {
...
requestOptions.res.end(data)
...
}

adding requestOptions.res.headers nor serverOptions.headers worked.

How do you deal with this properly?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions