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

希望可以按照域名启用规则 #45

Open
yize opened this issue Sep 10, 2019 · 2 comments
Open

希望可以按照域名启用规则 #45

yize opened this issue Sep 10, 2019 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@yize
Copy link
Owner

yize commented Sep 10, 2019

增加 enable 功能,在指定域名下开启规则。

{
  // Use IntelliSense to learn about possible links.
  // Type `rule` to quick insert rule.
  // 输入 rule 来快速插入规则
  // For more information, visit: https://github.com/yize/xswitch
  "proxy": [
    [
      "https://unpkg.com/[email protected]/umd/react.production.min.js",
      "https://unpkg.com/[email protected]/umd/react.development.js"
    ],
    // `Command/Ctrl + click` to visit:
    // https://unpkg.com/[email protected]/umd/react.production.min.js
    // [
      // "(.*)/path1/path2/(.*)", // https://www.sample.com/path1/path2/index.js
      // "http://127.0.0.1:3000/$2", // http://127.0.0.1:3000/index.js
    // ],
  ],
  // urls that want CORS
  // "cors": [
    // "mocks.a.com",
    // "mocks.b.com"
  // ]
  "enable": [
    "a.b.com"
  ],
}
@yize yize added the enhancement New feature or request label Sep 10, 2019
@overkazaf
Copy link
Collaborator

已处理,待验证~

@lcx-seima
Copy link

请问这个功能最后上了吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants