Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
stiluddclanward opened this issue Jan 31, 2024 · 0 comments

Comments

@stiluddclanward
Copy link

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");

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

No branches or pull requests

1 participant