Giter Site home page Giter Site logo

Comments (8)

JaroslawPrzybyl avatar JaroslawPrzybyl commented on August 20, 2024 2

After adding this section to http config, it started to work, thx!

from flex-horseshoe-card.

djbombacz avatar djbombacz commented on August 20, 2024 2

I have same problem.
Home Assistant 2023.3.6 / Sup. 2023.03.3 / 9.5
I get this error:
"Custom element doesn't exist: flex-horseshoe-card."
Do you know this issue and is any fix available?

from flex-horseshoe-card.

AmoebeLabs avatar AmoebeLabs commented on August 20, 2024 1

I think that if you would check the console from Chrome you will see CORS errors.

My installation does NOT work anymore with the latest HA if I omit the cors_allowed_origins

HA currently needs the cors_allowed_origins to be set (https://www.home-assistant.io/integrations/http/)

FH needs some stuff from unkpg.com. My current list is:

http:
  server_port: 8123
  use_x_forwarded_for: true
  cors_allowed_origins:
    - https://google.com
    - https://www.home-assistant.io
    - https://unpkg.com
    - https://<my-ha-domain.com>

You can also use a CORS plugin for Chrome to test things:

image

My test cards are still working with the latest HA:

image

image

Let me know if the CORS errors are indeed the problem!

from flex-horseshoe-card.

AmoebeLabs avatar AmoebeLabs commented on August 20, 2024 1

After adding this section to http config, it started to work, thx!

Great. I have pinned this issue, and will add some comments to the readme tomorrow! It’s now F1 FP1 time 😄

Since I tested already the beta’s, I totally forgot this issue once this HA version would be released…

from flex-horseshoe-card.

Mediacj avatar Mediacj commented on August 20, 2024

Same for me I reinstalled the card but still the same. I get this error:
"Custom element doesn't exist: flex-horseshoe-card."

from flex-horseshoe-card.

mhooghiemstra79 avatar mhooghiemstra79 commented on August 20, 2024

Same here on my mobile devices.
Strange thing is though on my nest hub where I use dash cast to cast the same dashboard it works fine.

from flex-horseshoe-card.

ZoltanPerhacs avatar ZoltanPerhacs commented on August 20, 2024

Hello!

I tried the above method, but it doesn't work.
Home Assistant 2022.3.5
Manual installation.
Card doesn't show up in add card to dashboard. Other custom cards do.

from flex-horseshoe-card.

koala04 avatar koala04 commented on August 20, 2024

i have same problem.

my configuration.yaml already include:

http:
server_port: 8123
cors_allowed_origins:
- https://google.com
- https://www.home-assistant.io
- https://unpkg.com

but i recive:

Access to script at 'https://unpkg.com/lit-html@%5E1.0.0?module' from origin 'http://192.168.xxx.xxx:8123' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Uncaught (in promise) http://192.168.xxx.xxx:8123/hacsfiles/flex-horseshoe-card/flex-horseshoe-card.js?hacstag=207292725090

from flex-horseshoe-card.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.