added color output in terminal
This commit is contained in:
1 parent
e7ca69aff1
commit
ad94b4d194
11 files changed
+100
-1
No files matched your search
@@ -1,6 +1,8 @@
|
||||
#include "cors.hpp"
|
||||
#include "../colors.h"
|
||||
|
||||
void set_cors_headers(const httplib::Request& request, httplib::Response& response) {
|
||||
std::cout << GREEN << request.path << " " << std::endl;
|
||||
response.set_header("Access-Control-Allow-Origin", "*");
|
||||
response.set_header("Access-Control-Allow-Methods", "GET,POST,OPTIONS");
|
||||
response.set_header("Access-Control-Allow-Headers", "Authorization,X-Custom,Content-Type");
|
||||
|
||||
Reference in new issue
Block a user