Skip to content

Configure custom HTTP headers #6262

@tpetersheim

Description

@tpetersheim

Bug Report or Feature Request (mark with an x)

- [ ] bug report -> please search issues before submitting
- [x] feature request

Desired functionality.

I would like to be able to configure webpack server HTTP headers through the angular cli. I am interested in configuring security headers so that I can determine their effects on my project.

Mention any other details that might be useful.

It looks like this could be done very similarly to how the proxy config is passed through to the WebpackDevServer config options. A separate config file could be used or maybe a combined configuration file could be used to hold both proxy and headers settings.

There is an existing request for adding proxy headers (#5968) but this request is just for headers in general.

I am interested in contributing this enhancement. Implementation feedback is welcomed.

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