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

paddeleserving服务化部署后怎么添加CORS跨域配置? #1951

Closed
dizhenx opened this issue Jun 29, 2023 · 1 comment
Closed

paddeleserving服务化部署后怎么添加CORS跨域配置? #1951

dizhenx opened this issue Jun 29, 2023 · 1 comment

Comments

@dizhenx
Copy link

dizhenx commented Jun 29, 2023

paddleserving部署paddleocr后,运行web_service.py, 使用命令行请求可以访问,但是前端页面发送post请求报错,不能跨域请求,访问失败。
这个web_service怎么添加CORS跨域配置,让前端能够访问?

@github-actions
Copy link

Message that will be displayed on users' first issue

@paddle-bot paddle-bot bot closed this as completed Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant