CORS not working

Hi,

I am trying to get over the blocked by cors policy error when accessing hassio through a local website.
I added

http:
  cors_allowed_origins:
    - http://mysite.localdomain

to the configuration.yaml but that doesn’t change anything. Any hints on what I missed in order to get this working?

Thanks!

was able to get around this by sing nginx addon and this config: