Kevin4ch
Results
2
comments of
Kevin4ch
uri.cpp line 125 change to "static const **signed** char hex_to_dec"
1.first handle options m_listener->support(methods::OPTIONS,std::bind(&MSHttpServer::handle_options, this, std::placeholders::_1)); 2.then set response header for OPTIONS method http_response sp(status_codes::OK); sp.headers().add("Access-Control-Allow-Origin","×"); sp.headers().add("Access-Control-Allow-Methods","×"); sp.headers().add("Access-Control-Allow-Headers","×"); resp.reply(sp);