Skip to content

Cannot Override Default proxyHeadersIgnore #619

Open
@misterpekert

Description

@misterpekert

According to the documentation for proxyHeadersIgnore, there is a default list of headers that are ignored when proxying headers to Axios.

However, the current implementation does not allow overriding this default list. Instead, it merges the user-provided array with the defaults using defu, which results in concatenation rather than replacement. This makes it impossible to fully control which headers are ignored.

This behaviour is not clearly documented and may lead to unexpected results when developers attempt to configure this option. I see two potential resolutions:
1. Update the documentation to clarify that the default values are merged (not replaced) and that full overriding is not possible.
2. Or, ideally, provide a way to override the defaults entirely—e.g., by allowing a sentinel value or a different merging strategy.

I’m happy to contribute a PR for this — I just need to know which direction you’d prefer

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions