-
问题描述我的 api 地址:api.daydayday.com 而设置为 ALLOWED_DOMAIN = 'api.daydayday.com' 时,会提示:{"code":403,"message":"请通过正确的域名访问"} 补充信息No response |
Beta Was this translation helpful? Give feedback.
Answered by
imsyy
Sep 6, 2023
Replies: 1 comment
-
ALLOWED_DOMAIN 是用于识别前端页面域名的,填写后只允许该域名调用,并且要正确填写协议头 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
imsyy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ALLOWED_DOMAIN 是用于识别前端页面域名的,填写后只允许该域名调用,并且要正确填写协议头
比如你的前端地址是 hot.daydayday.com,那么 ALLOWED_DOMAIN = "https://hot.daydayday.com"