unit icon indicating copy to clipboard operation
unit copied to clipboard

response_headers for 4xx and 5xx codes

Open AlekseyArh opened this issue 1 year ago • 8 comments

Моё приложение использует http состояния, например 409 при создании уже существующей записи. My application uses http states, for example 409 when creating an already existing record.

Но я не могу добавить CORS заголовки для ответов отличных от 2xx и 3xx. But I can't add CORS headers for responses other than 2xx and 3xx.

В nginx я бы мог использовать параметр always. In nginx I could use the always parameter.

Как мне быть в таком случае при использовании unit? What should I do in this case when using unit?

AlekseyArh avatar Nov 07 '23 23:11 AlekseyArh