chmorgan / libesphttpd

Libesphttpd - web server for ESP8266 / ESP32
Mozilla Public License 2.0
128 stars 45 forks source link

added the "PUT" method to CORS header Access-Control-Allow-Metho… #73

Closed phatpaul closed 4 years ago

phatpaul commented 5 years ago

Not sure why PUT was not included in allowed methods for CORS. I needed it for my application, so here it is added.

It tested OK for me.

FYI: https://stackoverflow.com/questions/44914330/method-put-is-not-allowed-by-access-control-allow-methods-in-preflight-response

chmorgan commented 5 years ago

@phatpaul this is approved by me. If you'd like to merge it feel free to do so. If you'd like me to do it that works too, just let me know.