Is this not something you can do yourself by calling send_header() after calling send_response()?

On Sat, Oct 26, 2019 at 7:33 AM Alex Yursha <alexyursha@gmail.com> wrote:
Hi CPython maintainers,

I need to test my CORS setup and looking for a possibility to set a custom Access-Control-Allow-Origin header in http.server. As of now, there is no such feature. Are you interested in me writing a patch to contribute a feature of setting custom headers directly to `http.server`?

Best,
- Alex
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-leave@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/TB3HCDXFED3G6VGSKSYLHYJICEDJ7FCA/
Code of Conduct: http://python.org/psf/codeofconduct/


--
--Guido van Rossum (python.org/~guido)
Pronouns: he/him (why is my pronoun here?)