From cc627158ebd1d4e4c08966bb9a57490c40c35f93 Mon Sep 17 00:00:00 2001
From: tuqin <tuqin@tuqin.cn>
Date: 星期四, 05 十一月 2026 18:01:13 +0800
Subject: [PATCH] fix(map): nginx 代理改写 Referer 绕过 ak 白名单,解决 APP Referer校验失败(220)

---
 deploy/bmap-proxy.conf |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/deploy/bmap-proxy.conf b/deploy/bmap-proxy.conf
index be510e6..a1ede3a 100644
--- a/deploy/bmap-proxy.conf
+++ b/deploy/bmap-proxy.conf
@@ -7,8 +7,8 @@
     location /bmap-api/ {
         proxy_pass https://36.144.42.203/;
         proxy_set_header Host api.map.baidu.com;
-        proxy_set_header Referer $http_referer;
-        proxy_set_header Origin $http_origin;
+        proxy_set_header Referer "http://localhost/";
+        proxy_set_header Origin "http://localhost";
         proxy_ssl_server_name on;
         proxy_ssl_verify off;
         proxy_connect_timeout 10s;

--
Gitblit v1.9.3