mirror of https://github.com/halo-dev/halo
![]() #### What type of PR is this? /kind feature /area ui /milestone 2.20.x #### What this PR does / why we need it: Add supports for display HTML format in API error responses See #7115 Examples: <img width="917" alt="image" src="https://github.com/user-attachments/assets/1ab4531c-3238-4e7d-ba24-d2425184a757"> <img width="942" alt="image" src="https://github.com/user-attachments/assets/54621b31-0629-4772-95fd-8587a7704ca3"> #### Which issue(s) this PR fixes: Fixes #7115 #### Special notes for your reviewer: Nginx mock example: ```nginx server { listen 80; server_name localhost; error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/html; } location / { proxy_pass http://localhost:8090; proxy_set_header HOST $host; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } location ^~ /apis/content.halo.run/v1alpha1/posts/ { return 403; } } ``` #### Does this PR introduce a user-facing change? ```release-note 支持显示来自反向代理或者 WAF 的请求错误信息 ``` |
||
---|---|---|
.. | ||
alerts | ||
attachment | ||
base-app | ||
button | ||
codemirror | ||
common | ||
dropdown-selector | ||
editor | ||
entity | ||
entity-fields | ||
filter | ||
form | ||
global-search | ||
icon | ||
image | ||
input | ||
menu | ||
permission | ||
preview | ||
sticky-block | ||
upload | ||
user | ||
user-avatar | ||
video |