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

feature: 新增 OPTIONS 请求拦截器。 #280

Merged
merged 10 commits into from
Mar 26, 2024

Conversation

wangliang181230
Copy link
Contributor

feature: 新增 OPTIONS 请求拦截器。

通过在拦截配置里添加如下格式的配置,来启用指定域名和地址的OPTIONS请求的快速响应:

{
    "ab.chatgpt.com": {
        "/*": {
            "options": true,
            //"optionsMaxAge": 2592000 // 默认值:2592000(一个月)
        }
    }
}

注意:此功能存在一定的风险,请谨慎使用。

@wangliang181230 wangliang181230 merged commit 3048ae7 into docmirror:master Mar 26, 2024
@wangliang181230 wangliang181230 deleted the OPTIONS_interceptor branch March 26, 2024 06:46
tanxingsong pushed a commit to tanxingsong/dev-sidecar that referenced this pull request Mar 28, 2024
@wangliang181230 wangliang181230 added the Feature 新特性PR label Mar 29, 2024
@wangliang181230 wangliang181230 added this to the 1.8.0 milestone Apr 11, 2024
@wangliang181230 wangliang181230 added v1.8.0 1.8.0版本 and removed v1.8.0 1.8.0版本 labels Apr 21, 2024
@wangliang181230 wangliang181230 added the v1.8.0 1.8.0版本 label Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature 新特性PR v1.8.0 1.8.0版本
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant