Not sure if this is the right category to post my question, but here it goes anyway.
I am making a request to my home assistant instance through the rest api:
curl -X GET \
https://homeassistant.<MYDOMAIN>/api/history/period/2021-07-08T07:49:34.386Z?end_time=2021-07-08T07:50:04.386Z \
-H 'Authorization: Bearer <MYTOKEN>‘
This works perfectly fine, my HASS instance is hosted as a subdomain behind an Nginx reverse proxy.
However, what does not work is adding an entity filter
curl -X GET \
https://homeassistant.<MYDOMAIN>/api/history/period/2021-07-08T07:49:34.386Z?end_time=2021-07-08T07:50:04.386Z&filter_entity_id=<SENSOR> \
-H 'Authorization: Bearer <MYTOKEN>‘
I get 401 unauthorized for this query. Any idea what the root cause of this is?