We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
文档上是这样解释的 不是太明白 具体需要怎么配置呢
schemaFilter?: (schema: any, isPreview?: boolean) => any 配置过滤器。可以用来实现 api proxy,比如原始配置中请求地址是 http://baidu.com 如果直接给编辑器预览请求,很可能会报跨域,可以自动转成 /api/proxy?_url=xxxx,走 proxy 解决。
The text was updated successfully, but these errors were encountered:
schemaFilter 用于替换 schema的内容,这里的思路是把api替换到自己的服务上,通过后端服务去转发请求实际的接口从而解决跨域。
Sorry, something went wrong.
allenve
No branches or pull requests
文档上是这样解释的 不是太明白 具体需要怎么配置呢
schemaFilter?: (schema: any, isPreview?: boolean) => any 配置过滤器。可以用来实现 api proxy,比如原始配置中请求地址是 http://baidu.com 如果直接给编辑器预览请求,很可能会报跨域,可以自动转成 /api/proxy?_url=xxxx,走 proxy 解决。
The text was updated successfully, but these errors were encountered: