Smart Light CORS Issue

#1

Dear All,

When using the PWA web app, i face an error, below are steps:

  1. Connect wifi to the AP of esp8266
  2. Click on "Scan:
  3. Open console of browser

I get the following error:

Access to XMLHttpRequest at 'http://192.168.4.1/GetKey' from origin 'http://mdash.net' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
app.js:336 Error:  Error: Network Error
    at e.exports (spread.js:25)
    at XMLHttpRequest.l.onerror (spread.js:25)

What shall I do to solve, this is a CORS issue. I am using mongoose-os firmware.