mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2026-10-25 13:40:03 +00:00
Update Startup.cpp
This commit is contained in:
1 parent
c2f260a86c
commit
7217cb1cab
1 file changed
+2
@@ -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-Allow-Headers", "X-API-Version");
|
||||||
|
res.set_header("Access-Control-Allow-Method", "GET,POST,OPTIONS");
|
||||||
}
|
}
|
||||||
|
|
||||||
void StartProxy() {
|
void StartProxy() {
|
||||||
|
|||||||
Reference in new issue
Block a user