nginx error pages and CORS

Peter Volkov peter.volkov at gmail.com
Wed Oct 13 10:12:34 UTC 2021


Hi.

We use Nginx as a reverse proxy for our service that manages CORS by
itself. Yet we have problems with errors that Nginx generates itself, e.g.
413 Request Entity Too Large. Such error pages has no CORS headers and this
causes browsers to report the CORS issue, and thus the user does not see
the real reason for this problem. So we would like to add permissive CORS
headers to all error pages that Nginx generates. Does there exist such a
list of error codes that Nginx generates? Like wrong headers, bad requests,
whatever?

Thanks in advance for your help,
--
Peter.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20211013/af1ec109/attachment.htm>


More information about the nginx mailing list