Chat freely about anything...

User avatar
By Henning
#72676 Hello,
I like the esp8266 very much. The cheap system with a webserver and an assigned filesystem with 3MB space is great. I developed applications for a relative long time with the Release 2.3.0, these days I changed to 2.4.0rc2 8-)
In the past I developed the web-pages locally on my PC using the Apache-Server. The advantage is that you can see your changes immediately, you dont`t have to upload to the esp. The hardware specific things are called via http-requests. Ok ... this is a fast "on error try"-method, but I prefer it and you are trying more. This method is a "cross origin access", the main stuff is on the Apache but the "data access" comes from the esp. When work is finished everything is uploaded to the esp commonly. The webserver must allow this in the response header:

sendHeader("Access-Control-Allow-Origin", "*");

This line in function _prepareHeader() is missing since release 2.4.0rc1 in ESP8266WebServer.cpp. Possibly it comes back in future releases, may be switchable on/off ...

friendly regards
Henning