I have forked off a web server from the SDK IoT_Demo example. Upon a reset, the ESP8266 server responds to GET requests from a browser using an URL with a DDNS domain and a specified port that the ESP8266 server is set to listen on. My router is properly configured to port forward (I have several other MPUs, many cameras and other "Things" configured this way, which have been working for years).
Problem is that the ESP8266 appears to stop recognizing the requests after a minute or so. I have some debug code setup to provide some info to the serial port using the ESP8266 timer, that shows that the ESP8266 is still running when it stops responding to the GET request.
I thought that this was a same-origin policy issue as I noticed the ESP8266 continues to respond to Get requests using it's static IP:port as the browser URL even after the port forwarding URL stopped getting a reply.
So I added "Access-Control-Allow-Origin: *" to the response header but this did not help since the ESP8266 did not appear to recognize the GET request; it did not trigger a callback from the server listen.
Very strange that it starts working normally after a reset, but then stops - for cross-domain requests.
Next step will be to sniff the packets with Wireshark, but I am not sure if that will lead to a root cause.
It's not on the internet if the "thing" is under house arrest in the local network!
I am using SDK Version 1.0.0
Any insight would be appreciated...