nginx error pages and CORS

Peter Volkov peter.volkov at gmail.com
Mon Oct 18 13:18:22 UTC 2021


Hi, any ideas here?

--
Peter.


On Wed, Oct 13, 2021 at 1:12 PM Peter Volkov <peter.volkov at gmail.com> wrote:

> 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/20211018/3d74f8a9/attachment.htm>


More information about the nginx mailing list