You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Access to fetch at 'http://192.168.1.2:2283/api/asset/random' from origin 'http://homeassistant.local:8123' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
I have worked a lot to try to understand my problem but I still have a blockage.
I even tried putting nginx as a reverse proxy server to add Access-Control-Allow-Origin, nothing worked. Requests like /api/asset/random work fine with postman but not with Home Assistant.
The fetch is systematically in error.
I have the right API socket, I have the right address, the right port. When I do the same query as fetch in Postma, it works. When I do it in curl in cli, same, it's ok
I tested other requests that respond in json, they work well, only those sent to immit are blocked.
I don't understand, do you have a card that works?
thank!
The text was updated successfully, but these errors were encountered:
Hi !!
Access to fetch at 'http://192.168.1.2:2283/api/asset/random' from origin 'http://homeassistant.local:8123' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
I have worked a lot to try to understand my problem but I still have a blockage.
I even tried putting nginx as a reverse proxy server to add Access-Control-Allow-Origin, nothing worked. Requests like /api/asset/random work fine with postman but not with Home Assistant.
The fetch is systematically in error.
I have the right API socket, I have the right address, the right port. When I do the same query as fetch in Postma, it works. When I do it in curl in cli, same, it's ok
I tested other requests that respond in json, they work well, only those sent to immit are blocked.
I don't understand, do you have a card that works?
thank!
The text was updated successfully, but these errors were encountered: