Closed mijofa closed 1 year ago
Just (accidently) confirmed it did the same deduping with X-Frame-Options header as well, although it's probably not bad to dedupe that one, it does confirm it's not just Set-Cookie
I believe this is because the headers are being processed as a dict around here but dicts can't have duplicate keys so they just overwrite each other. Might be more valid to use a list of 2-tuples, but I'm not sure how to neatly fit that in here.
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
Describe the issue you are experiencing
When using the Ingress feature to access an add-on's web server, if that add-on sends multiple "Set-Cookie" headers, HA/Ingress will only send one of those headers to the user's browser. I believe this is happening with every HTTP header, but the only one I've actually run into issues with is Set-Cookie, since that requires repeating the header to set multiple cookies.
What type of installation are you running?
Home Assistant OS
Which operating system are you running on?
Home Assistant Operating System
Steps to reproduce the issue
Anything in the Supervisor logs that might be useful for us?
System Health information
System Information
Home Assistant Community Store
GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok GitHub API Calls Remaining | 4869 Installed Version | 1.32.1 Stage | running Available Repositories | 1288 Downloaded Repositories | 18AccuWeather
can_reach_server | ok -- | -- remaining_requests | 42Home Assistant Cloud
logged_in | false -- | -- can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | okHome Assistant Supervisor
host_os | Home Assistant OS 10.1 -- | -- update_channel | stable supervisor_version | supervisor-2023.04.1 agent_version | 1.5.1 docker_version | 23.0.3 disk_total | 116.7 GB disk_used | 55.3 GB healthy | true supported | true board | generic-x86-64 supervisor_api | ok version_api | ok installed_addons | Mosquitto broker (6.2.1), motionEye (0.19.1), NGINX Home Assistant SSL proxy (3.4.2), Advanced SSH & Web Terminal (14.1.0), Home Assistant Google Drive Backup (0.110.4), Let's Encrypt (4.12.8), Mautrix Facebook bridge (0.0.3), TimescaleDB (2.1.1), Matrix.org Synapse (0.0.14), Mautrix Google Chat bridge (0.0.2), Matrix Steam bridge (0.1.0), Matrix Heisenbridge, with Wireguard (0.5.20), Rsyslog (2022.5.1), snapcast (0.42)Dashboards
dashboards | 8 -- | -- resources | 12 views | 28 mode | storageRecorder
oldest_recorder_run | May 4, 2023 at 1:44 AM -- | -- current_recorder_run | May 7, 2023 at 3:45 PM estimated_db_size | 263.18 MiB database_engine | sqlite database_version | 3.40.1Supervisor diagnostics
I don't think this is useful for this issue, and there's too much data for me to reliably check it for privacy/etc. Happy to include if told it is necessary though.
Additional information
No response