Skip to content

I want set header and user-agent in all http request,so i can use domain fronting and apache mod_rewrite, where i should change  #406

@stiluddclanward

Description

@stiluddclanward

I found sed_header information below,is it enough
./src/cc/CCClient.cpp: req.set_header("Host", hostHeader.str());
./src/cc/CCClient.cpp: req.set_header("Accept", "//");
./src/cc/CCClient.cpp: req.set_header("User-Agent", Platform::userAgent());
./src/cc/CCClient.cpp: req.set_header("Accept", "application/json");
./src/cc/CCClient.cpp: req.set_header("Content-Type", "application/json");
./src/cc/Httpd.cpp: res.set_header("Access-Control-Allow-Origin", "*");
./src/cc/Httpd.cpp: res.set_header("Access-Control-Allow-Methods", "POST, GET, OPTIONS");
./src/cc/Httpd.cpp: res.set_header("Access-Control-Allow-Headers", "Content-Type, Authorization");
./src/cc/Httpd.cpp: res.set_header("WWW-Authenticate", "Basic");
./src/cc/Httpd.cpp: res.set_header("WWW-Authenticate", "Bearer");

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions