Skip to content

Commit

Permalink
add authorization cors header
Browse files Browse the repository at this point in the history
  • Loading branch information
hannemann committed Oct 16, 2016
1 parent a73b288 commit 792293e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1871,6 +1871,7 @@ void QueryHandler::addHeader(cxxtools::http::Reply& reply)
{
reply.addHeader("Access-Control-Allow-Origin", "*");
reply.addHeader("Access-Control-Allow-Methods", "POST, GET, DELETE, PUT");
reply.addHeader("Access-Control-Allow-Headers", "accept, authorization");
}

vector< string > QueryHandler::getBodyAsStringArray(string name) {
Expand Down

0 comments on commit 792293e

Please sign in to comment.