TasUI icon indicating copy to clipboard operation
TasUI copied to clipboard

help please

Open HarryMcGill2022 opened this issue 3 years ago • 2 comments

how do I use this this as non of my devices show up

HarryMcGill2022 avatar Dec 23 '21 19:12 HarryMcGill2022

Seems like Chrome has new CORS policies... Enable Console to check for errors. Ex: Access to XMLHttpRequest at 'http://192.168.1.251/cm?cmnd=Status%200' from origin 'http://tasui.shantur.com' has been blocked by CORS policy: The request client is not a secure context and the resource is in more-private address space private.

catalintabirca avatar Dec 28 '21 19:12 catalintabirca

Sorry, but since Tasmota 8.3, CORS has been disabled due to security risks in Tasmota's CORS implementation. Besides, in latest Tasmota version is not even included in any precompiled version.

So, as Tasmota don't support CORS, TasUI is not usable with Tasmota anymore.

Full explanation of the security issue is at https://github.com/arendst/Tasmota/issues/6767

As a workaround you can:

  • Move to use another management tool like TDM, Tasmoadmin or others (list in Tasmota documentation and also in https://github.com/arendst/Tasmota/discussions/13331#discussioncomment-1459888 )

  • Or instead of using any management tool, you can use any of the integrations explained at https://tasmota.github.io/docs/Integrations/

  • Or Download latest Tasmota and compile by yourself enabling CORS (Not recommended due to security). Instructions on compiling Tasmota are at https://tasmota.github.io/docs/Compile-your-build/ and the KEY you need to add in the compilation is explained at https://github.com/arendst/Tasmota/pull/12827

ascillato avatar Dec 28 '21 20:12 ascillato