mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-04-26 07:55:52 +03:00
[GH-ISSUE #597] Forbidden (403) CSRF verification failed. Request aborted. #351
Labels
No labels
bug
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/webvirtcloud#351
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @puffpants on GitHub (Sep 4, 2023).
Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/597
After using the Quick Install with Installer on Debian 12, everything seems to install correctly and I am presented with the web interface, however I get a Forbidden (403) CSRF verification failed. Request aborted. when using the default credentials, admin:admin.

what logs or additional information would be needed to troubleshoot.
@puffpants commented on GitHub (Sep 4, 2023):
I have reinstalled using the manual method and all went well, but i am seeing the same issue. i have enabled Debug and see this:

@puffpants commented on GitHub (Sep 4, 2023):
adding this:

to the setings.py seems to have fixed, but from reading this should not have been needed, nor does it seem to be the "right" way. ill leave this open to see why it had to be done manually, or for it to be added to the instructions.
@puffpants commented on GitHub (Sep 5, 2023):
to follow up again, I am able to get into the web interface, but when trying to add a server, the local host, i get this error:

I will note that the last step of the install is not able to finish:
@catborise commented on GitHub (Sep 5, 2023):
there is some changes in debian 12 package names. i will fix it. thanks. also django CSRF verification changes exist. we must add CSRF_TRUSTED_ORIGINS to settings.py
@catborise commented on GitHub (Sep 6, 2023):
@puffpants i think all problems are solved. you can try with latest.. cheers
@puffpants commented on GitHub (Sep 9, 2023):
@catborise I have reinstalled via manual method.
i can see that CSRF_TRUSTED_ORIGINS = ['http://localhost',] has been added to the settings.py file, but this only allows for access from the local system. This is better, but a step should probably be added to either edit the hostname, or have it pull it in automatically somehow.
I was now able to run the "setup libvirt and KVM on server" without issue.
With that said I am able to log in, but wen I try to add the host server, still get errors:
TCP:

SSH:

TLS:

Local:

If there are post install / setup steps i have missed, can you please link them?
Thanks!
@puffpants commented on GitHub (Sep 9, 2023):
I found the info to make the SSH keys lower down. all is working now. Thanks!