mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2025-07-01 23:46:59 +00:00
v2.0.84
- add Access-Control response headers
This commit is contained in:
parent
c2f260a86c
commit
9afdfd4d1b
@ -272,6 +272,8 @@ void PreGame(const std::string& GamePath){
|
|||||||
|
|
||||||
void set_headers(httplib::Response& res) {
|
void set_headers(httplib::Response& res) {
|
||||||
res.set_header("Access-Control-Allow-Origin", "*");
|
res.set_header("Access-Control-Allow-Origin", "*");
|
||||||
|
res.set_header("Access-Control-Request-Method", "POST, OPTIONS, GET");
|
||||||
|
res.set_header("Access-Control-Request-Headers", "X-API-Version");
|
||||||
}
|
}
|
||||||
|
|
||||||
void StartProxy() {
|
void StartProxy() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user