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

在不开启ngix的情况下,如何解决跨域问题呢 #13

Open
1980744819 opened this issue Jan 3, 2019 · 2 comments
Open

在不开启ngix的情况下,如何解决跨域问题呢 #13

1980744819 opened this issue Jan 3, 2019 · 2 comments

Comments

@1980744819
Copy link

No description provided.

@fy0
Copy link
Owner

fy0 commented Jan 4, 2019

你好 默认配置不存在跨域问题,参见config.py:
CORS_OPTIONS = CORSOptions('', allow_credentials=True, expose_headers='', allow_headers='*')

@guzhenping
Copy link

后端config.py或者private.py文件host修改为:

HOST = '0.0.0.0'

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

3 participants