ljalves / hfeasy

HFeasy - firmware for HF-LPx100/LPx30 based devices
45 stars 14 forks source link

CORS header #18

Closed mrMikeWatson closed 2 years ago

mrMikeWatson commented 4 years ago

Any way to easily add this http header? Access-Control-Allow-Origin: *

This would allow a simple pretty html page to be built using ajax to toggle relay.

ljalves commented 2 years ago

Not sure I understood the idea... Add that header to which webpage?

You can already control the device at http://ip/ctrl

ljalves commented 2 years ago

I read about CORS and I see your idea. Do you still need this?

mrMikeWatson commented 2 years ago

I only have one device that uses this and it is on the shelf right now. So no rush, and if it is a pain to do, no worries. Nice work on this greatly enhances the device, appreciated.