Skip to content
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

Lovelace map card in HA - INFO #238

Closed
pszafer opened this issue May 17, 2019 · 0 comments
Closed

Lovelace map card in HA - INFO #238

pszafer opened this issue May 17, 2019 · 0 comments

Comments

@pszafer
Copy link
Contributor

pszafer commented May 17, 2019

Hello,
Not an issue of Valetudo, but maybe here is someone who knows hot to avoid CORB (and I guess later CORS).
I tried to write lovelace card with map as follows:

- type: custom: valetudo-map-card
  robot_address: <IP>

I thought that it would be the best as all of the drawing would go to client browser.
But then CORB error occured.
Seems that Express library doesn't allow to change content-type header expressjs/express#3961
According to this - cakephp/cakephp#13156 Chrome won't allow to download json if Contenty-type header line doesn't end with *json.

Our content type looks like:

Content-Type: application/json; charset=utf-8

Any advice?

@Hypfer Hypfer closed this as completed May 28, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants