me-no-dev / ESPAsyncWebServer

Async Web Server for ESP8266 and ESP32
3.81k stars 1.23k forks source link

AsyncEventSource and Custom headers #1241

Open ttyridal opened 2 years ago

ttyridal commented 2 years ago

not possible?

of particular interest to me right now: cors headers.

jschoch commented 1 year ago

this seems to work ok:

  ....
  server.addHandler(&events);
  DefaultHeaders::Instance().addHeader("Access-Control-Allow-Origin", "*");
  DefaultHeaders::Instance().addHeader("Access-Control-Allow-Headers", "*");
  server.begin();
stale[bot] commented 1 year ago

[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

Ammar-Ishfaq commented 4 weeks ago

Not working did anyone find the solution?

stale[bot] commented 4 weeks ago

[STALE_CLR] This issue has been removed from the stale queue. Please ensure activity to keep it openin the future.