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

User-provided custom headers #884

Closed
kipcode66 opened this issue Aug 10, 2024 · 0 comments · Fixed by #887
Closed

User-provided custom headers #884

kipcode66 opened this issue Aug 10, 2024 · 0 comments · Fixed by #887

Comments

@kipcode66
Copy link

What's the problem this feature will solve?

In a project I was working on, I wished to use CORP headers in order to use SharedArrayBuffer (which is only possible if we don't allow cross origin requests through the CORP headers, which are different from the CORS headers already available in the http-server script).

Describe the solution you'd like

The solution I propose would be to add a CLI argument to provide a list of headers, potentially a string containing a semi-colon separated list of "header:value" entries.

Alternative Solutions

I used to use a python library to run an HTTPS server to test my application, but the library doesn't seem to be available on my distribution anymore. And this application seems to be more user-friendly anyway, so it would be best if we upgraded this module with the option to add custom headers.

Additional context

N/A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant