mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-25 17:16:00 +03:00
[GH-ISSUE #1028] Is CSRF cookie blocking CURL and archivebox-exporter plugin access? #645
Labels
No labels
expected: maybe someday
expected: next release
expected: release after next
expected: unlikely unless contributed
good first ticket
help wanted
pull-request
scope: all users
scope: windows users
size: easy
size: hard
size: medium
size: medium
status: backlog
status: blocked
status: done
status: idea-phase
status: needs followup
status: wip
status: wontfix
touches: API/CLI/Spec
touches: configuration
touches: data/schema/architecture
touches: dependencies/packaging
touches: docs
touches: js
touches: views/replayers/html/css
why: correctness
why: functionality
why: performance
why: security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ArchiveBox#645
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 @erwin on GitHub (Sep 17, 2022).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/1028
Thanks for stopping by and taking the time to read this!
My goal is plugin and remote CLI access. Archivebox itself works great!
I'm running ArchiveBox in docker.
archivebox version
I've tried setting:
But the archivebox-exporter plugin is unable to add any pages to ArchiveBox, and when I try to add pages via
curlfrom the command line, I get:I get back the following page content:
I thought that the
/addpage was exempt from CSRF cookies according to:https://github.com/ArchiveBox/ArchiveBox/pull/777
Note that I tried to set
DEBUG=truein the HTTP request, but that doesn't change anything. I presume it's part of the django / archivebox config, but no idea where we're actually supposed to set that.Any other thoughts about how to reconfigure archivebox so that I can use the CLI remotely via CURL and so that the archive-box exporter browser plugin will connect and add pages?
@pirate commented on GitHub (Jun 13, 2023):
I'm sorry I didn't respond to this earlier! I haven't encountered this issue myself with the extension, are you still experiencing it with the latest
archivebox/archivebox:devimage?I suspect you may need to have cookies submitted with the archivebox
/addPOST requests to save URLs, bare CURL requests may not work because of default Django protections. Thearchivebox-exporterextension and your browser should handle this normally though. The extension is working in my browser and a few other test machines, so I'm inclined to believe it's an edge case.Comment back if you're still having issues though, I'm happy to re-open this ticket and investigate further.
@erwin commented on GitHub (Jun 15, 2023):
FYI, by changing to
:devit's working fine for me now.Note, do not use "/add" on the end of your configured hostname... That will be sent automatically by the plugin