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

cors proxy / 图片跨域代理 #2

Open
ly525 opened this issue Nov 26, 2019 · 0 comments
Open

cors proxy / 图片跨域代理 #2

ly525 opened this issue Nov 26, 2019 · 0 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@ly525
Copy link
Member

ly525 commented Nov 26, 2019

欢迎认领此 issue
welcome to fix this issue

参考资料:https://html2canvas.hertzen.com/proxy/
see more here

{
      // 图片代理,防止跨域
      // 主要是请求一些跨域图片的时候,先走API,API负责请求图片,用来解决跨域问题
      // 代码关键实现:return http.request(request.get.imgURL)
      "method": "GET",
      "path": "/works/cors-proxy",
      "handler": "Work.corsProxy",
      "config": {
        "policies": []
      }
    },
@ly525 ly525 added good first issue Good for newcomers help wanted Extra attention is needed labels Nov 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant