-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Loading History-Graph fails #24
Comments
I believe that the addon will use the URL configured on the |
BTW. The root issue is in HA (see resoai/TileBoard#386) but using the same URL for the REST API calls as you are using for opening the TileBoard itself will work around it. |
till now the external URL wasn't set. I put the same internal IP on both URLs, but this does not resolve the problem. :-( the error is the same, but now with the internal IP:
|
Is your local URL |
I changed both (tileboard and HA) to use SSL |
That doesn't quite make sense to me if both the URL in the browser field and the failing request start with the same protocol, domain and port. Browsers only trigger preflight requests when those don't match. |
the error-message in the Log of the AdOn is: |
Maybe don't use SSL since you don't seem to have a proper SSL certificate for your URL (I think that it's not even possible to have a valid certificate for a local IP). |
I tried to switch off the SSL option in configuration tab of the AddOn too, but it does not make any difference - the error stays:
|
It should work when TileBoard is loaded from http://192.168.178.44:8123 and is requesting the API at http://192.168.178.44:8123. It seems like before you were able to make the API request to https://192.168.178.44:8123 so now it should just be a matter of switching to HTTP for both. |
TileBoard keeps routing to https://nabucasa... no matter what I do put into "external URL".... :- ( edit: I did switch to non-ssl http on both ends! |
I would have to look at that at some point. The logic tries to guess the used URL to make experience smoother but it apparently goes wrong when using HA cloud. I don't have a cloud account so not sure if I'll be able to investigate it but will see... |
I have same issue :( Access to XMLHttpRequest at 'http://192.168.1.2:8123/api/history/period/2022-06-20T17:35:17.453Z?end_time=2022-06-21T17:35:17.453Z&filter_entity_id=sensor.xiaomi_rack_temperature' from origin 'http://192.168.1.2:1717' 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. |
Hi!
as switching to the AddOn, I do get the following errors on my history-graph-tiles:
[Error] Preflight response is not successful [Error] XMLHttpRequest cannot load https://xxxx.ui.nabu.casa/api/history/period/2x021-09-02T19:15:20.359Z?end_time=2021-09-09T19:15:20.359Z&filter_entity_id=sensor.bl_berlin_weekincidence due to access control checks. [Error] Failed to load resource: Preflight response is not successful (2021-09-02T19:15:20.359Z, line 0)
any Idea, why tailboard tries to load the data over nabucasa and not locally?
thanks in advance,
Michael
edit: I'm not using ingress, but a configured port for using it with my old android tablets!
The text was updated successfully, but these errors were encountered: