python - Forbidden (403) CSRF verification failed. Request aborted. while logging in in Label Studio - Stack Overflow

Once labelstudio is updated to versionand run from commandline:LABEL_STUDIO_DISABLE_SIGNUP_WITHOUT_LI

Once labelstudio is updated to version

and run from commandline:

LABEL_STUDIO_DISABLE_SIGNUP_WITHOUT_LINK=true CRYPTOGRAPHY_OPENSSL_NO_LEGACY=1 HOST='https://...' nohup label-studio -b --data-dir /label-studio/data/ -db /label-studio/db.sqlite --log-level INFO --internal-host localhost -p 8080 --host https://... --agree-fix-sqlite > label-studio.out 2> label-studio.err &

On login attempt it results in an issue:

Forbidden (403) CSRF verification failed. Request aborted.

The setup is Python 3.11.11 with the following relevant modules:

label-studio==1.15.0
label-studio-converter==0.0.59
label-studio-sdk==1.0.8
label-studio-tools==0.0.4

Once labelstudio is updated to version

and run from commandline:

LABEL_STUDIO_DISABLE_SIGNUP_WITHOUT_LINK=true CRYPTOGRAPHY_OPENSSL_NO_LEGACY=1 HOST='https://...' nohup label-studio -b --data-dir /label-studio/data/ -db /label-studio/db.sqlite --log-level INFO --internal-host localhost -p 8080 --host https://... --agree-fix-sqlite > label-studio.out 2> label-studio.err &

On login attempt it results in an issue:

Forbidden (403) CSRF verification failed. Request aborted.

The setup is Python 3.11.11 with the following relevant modules:

label-studio==1.15.0
label-studio-converter==0.0.59
label-studio-sdk==1.0.8
label-studio-tools==0.0.4
Share Improve this question asked Jan 29 at 13:35 sophrossophros 16.8k11 gold badges50 silver badges82 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

The issue has been reported on GitHub and one of the users provided a workaround of using a system variable:

 USE_ENFORCE_CSRF_CHECKS=false

but it must be understood that:

Disabling CSRF as shown above will fix this, but note that it also makes Label Studio less secure.

Either way, it is a temporary solution until a fix is available.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745294790a4621073.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信