Add support for CORS in HAProxy stats dashboard
- Introduced `HAPROXY_STATS_CORS_ORIGIN` environment variable for enabling CORS in HAProxy stats. - Updated HAProxy configuration template to handle CORS preflight and response headers. - Added tests for static configuration mode with CORS enabled. - Updated documentation to include new CORS configuration details and examples.
This commit is contained in:
parent
353fd392f6
commit
491f4a8c09
8 changed files with 203 additions and 23 deletions
|
|
@ -149,8 +149,8 @@ def test_container_env_stats_password():
|
|||
"stats": {
|
||||
"username": "admin",
|
||||
"password": "xyz",
|
||||
"port": "1936"
|
||||
|
||||
"port": "1936",
|
||||
"cors_origin": ""
|
||||
},
|
||||
"logLevel": {
|
||||
"easyhaproxy": Functions.DEBUG,
|
||||
|
|
@ -191,7 +191,8 @@ def test_container_env_stats_password_2():
|
|||
"stats": {
|
||||
"username": "abc",
|
||||
"password": "xyz",
|
||||
"port": "2101"
|
||||
"port": "2101",
|
||||
"cors_origin": ""
|
||||
},
|
||||
"logLevel": {
|
||||
"easyhaproxy": Functions.DEBUG,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue