OttPeterR / addon-babybuddy

BabyBuddy, wrapped into a Home Assistant addon
36 stars 13 forks source link

Multiple CSRF Trusted Origins #34

Closed jampez77 closed 1 year ago

jampez77 commented 1 year ago

I would like to set more than one CSRF Trusted Origins as different URLs are used by the HA companion apps depending on weather they are connected locally or remotely.

OttPeterR commented 1 year ago

It'll work if you use a comma (with no space)

Baby buddy has documentation here

OttPeterR commented 1 year ago

I'll be updating the docs later today so I'll close this one out

jampez77 commented 1 year ago

I missed the docs, apologies.

However I'm still getting knocked back with comma separated hosts. Only the first host works, the second one after the comma doesn't work for me.

OttPeterR commented 1 year ago

I’m passing the content of that parameter to the baby buddy application, then I believe it’s giving that to Django, the django docs are here but these might not be much more additional help.I’m not familiar with how Django works so I wont be much help unfortunately 😞

edit: cleaning up email formatting