Skip to content

应该如何正确设置 ALLOWED_DOMAIN? #20

Answered by imsyy
onmpen asked this question in Q&A
Discussion options

You must be logged in to vote

ALLOWED_DOMAIN 是用于识别前端页面域名的,填写后只允许该域名调用,并且要正确填写协议头
比如你的前端地址是 hot.daydayday.com,那么 ALLOWED_DOMAIN = "https://hot.daydayday.com"

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by imsyy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #14 on September 06, 2023 06:34.