Description
Important notices
Before you add a new report, we ask you kindly to acknowledge the following:
- I have read the contributing guide lines at https://github.com/opnsense/plugins/blob/master/CONTRIBUTING.md
- I have searched the existing issues, open and closed, and I'm convinced that mine is new.
- When the request is meant for an existing plugin, I've added its name to the title.
Is your feature request related to a problem? Please describe.
I'd like to send a json error page but the created file have html
extension so content type is not application/json
Describe the solution you'd like
I did change in /usr/local/etc/nginx/nginx.conf
the error file name (twice) with json
extension and did rename the file /usr/local/etc/nginx/views/error_someuuid.html
with json
extension and it works great, I have a json mime type response, but I must do that for every changes made via UI
That could be possible to add an extension
field to the error page
settings that would allow to set json
or anything else, with html
as default
that could be read here :