12. Local file access control #14

Closed
opened 2026-05-20 15:31:51 -06:00 by ppreeper · 0 comments
Owner

Description

Implement --disable-local-file-access and --enable-local-file-access flags.

Tasks

  • --disable-local-file-access → pass --disable-file-access to Chrome
  • --enable-local-file-access → default behavior, no special flag needed
  • Default: local file access enabled (matching wkhtmltopdf default)
  • When disabled, Chrome cannot load file:// URLs except the input file
  • Warn if both flags are specified (last one wins)

Acceptance Criteria

  • --disable-local-file-access blocks Chrome from reading arbitrary local files
  • --enable-local-file-access allows local file references (images, CSS)
  • Default behavior allows local file access
  • Flag correctly passed to Chrome command line

Notes

  • Chrome --disable-file-access prevents loading local files via file://
  • The input HTML file itself must still be accessible
  • Relates to PRD #2
## Description Implement `--disable-local-file-access` and `--enable-local-file-access` flags. ## Tasks - [ ] `--disable-local-file-access` → pass `--disable-file-access` to Chrome - [ ] `--enable-local-file-access` → default behavior, no special flag needed - [ ] Default: local file access enabled (matching wkhtmltopdf default) - [ ] When disabled, Chrome cannot load `file://` URLs except the input file - [ ] Warn if both flags are specified (last one wins) ## Acceptance Criteria - `--disable-local-file-access` blocks Chrome from reading arbitrary local files - `--enable-local-file-access` allows local file references (images, CSS) - Default behavior allows local file access - Flag correctly passed to Chrome command line ## Notes - Chrome `--disable-file-access` prevents loading local files via `file://` - The input HTML file itself must still be accessible - Relates to PRD #2
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ppreeper/wkhtmltopdf#14
No description provided.