Skip to content

Conversation

@derpflanz
Copy link

This adds the possibility to add maximum 3 extra header fields to the response. This is useful when using the ArduinoHttpServer to serve REST calls and you want the caller to reside somewhere else (like a local HTML file).

Usage:

httpReply.addHeader("Access-Control-Allow-Origin", "*");

Tested and works on the Arduino MKR Wifi

@replaysMike
Copy link

bump this would be great to have merged in. Lacking header support is an important oversight of the library

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants