Hassio REST API CORS

Hello,
I am trying to integrate my app with Home Assistant. Now i am using Rest api in javascript to do that, but when i run my app i get the CORS error that access to my hassio blocked from my origin “http://home.icodes.local”.
I have tried allowing CORS at the top of my html code and addes http://home.icodes.local to the cors section in the configuration of Home Assistant. But, it still doesn’t work.

Can anyone help me fixing this?
Regards,
Kuno

CORS with the API seems a little flakey, OPTIONS doesn’t work while GET and POST work fine. If you manage to get OPTIONS to work I’d like to hear how it’s done :slight_smile: