Django-dj-rest-auth+;反应:当帐户(电子邮件)验证=';强制性';?

Django-dj-rest-auth+;反应:当帐户(电子邮件)验证=';强制性';?,django,post,django-allauth,django-rest-auth,Django,Post,Django Allauth,Django Rest Auth,我目前正在构建一个django&dj rest-auth+react项目,并拥有我的allauth帐户\电子邮件\验证='强制' 当前和默认情况下,电子邮件激活链接只能向dj_rest_auth.registration.views.VerifyEmailView发出GET请求,该请求仅接受以激活密钥作为正文参数的POST请求: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transf

我目前正在构建一个django&dj rest-auth+react项目,并拥有我的allauth帐户\电子邮件\验证='强制'

当前和默认情况下,电子邮件激活链接只能向dj_rest_auth.registration.views.VerifyEmailView发出GET请求,该请求仅接受以激活密钥作为正文参数的POST请求:

Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Subject: [example.com] Please Confirm Your E-mail Address
From: webmaster@localhost
To: firstlast@email.com
Date: Sun, 04 Apr 2021 09:56:05 -0000
Message-ID: <161753016543.13016.12022069896332406678@DESKTOP-LFBEG3D>

Hello from example.com!

You're receiving this e-mail because user firstlast@email.com has given your e-mail address to register an account on example.com.

To confirm this is correct, go to http://localhost:8000/users/registration/account-confirm-email/MjQ:1lSzUD:OVzw0T279ufU2FyzHhKbWo2oilnya9x9vfQLJ6WgEzw

Thank you for using example.com!
example.com
[04/Apr/2021 02:56:05] "POST /users/registration/ HTTP/1.1" 201 18797
内容类型:文本/普通;charset=“utf-8”
MIME版本:1.0
内容传输编码:7bit
主题:[example.com]请确认您的电子邮件地址
发件人:webmaster@localhost
致:firstlast@email.com
日期:2021年4月4日星期日09:56:05-0000
消息ID:
大家好,来自example.com!
您收到此电子邮件是因为用户firstlast@email.com已提供您在example.com上注册帐户的电子邮件地址。
要确认这是正确的,请转到http://localhost:8000/users/registration/account-确认电子邮件/MjQ:1lSzUD:OVZW0T279UFU2FYZHHKWO2OILNYA9X9VFQLJ6WGEZW
感谢您使用example.com!
example.com
[4/Apr/2021 02:56:05]“POST/users/registration/HTTP/1.1”201 18797
我不知道如何通过Django发送的电子邮件中嵌入的链接发出POST请求

我当前的解决方案是修改方法,用我的前端反应路由替换
绝对uri
。然后,我将向VerifyEmailView发出POST请求,这样用户就不必查看我的后端视图。是否有一种好的或标准的方法来动态添加我的前端域,而不是硬编码
http://localhost:5000
https://production.com
输入我的代码