PDFs fail to load if behind basic auth
See original GitHub issueCarried over from https://github.com/brave/browser-laptop/issues/8702
If a pdf file is behind basic auth, then it fails to display with our pdfjs extension.
Steps to reproduce:
Download this script and extract it to your home directory SimpleHTTPAuth.py.zip. Create a pdf file named
type.pdf
in the same directory.Start it
python SimpleHTTPAuth.py 9001 u:p
Navigate to
http://localhost:9001/type.pdf
Note it works in Chrome with pdfjs but not in Brave built in.
CC @diracdeltas
Issue Analytics
- State:
- Created 5 years ago
- Reactions:4
- Comments:10 (6 by maintainers)
Top Results From Across the Web
Error = Invalid PDF structure, while viewing and downloading ...
Carried over from brave/browser-laptop#8702 If a pdf file is behind basic auth, then it fails to display with our pdfjs extension. Steps to....
Read more >Troubleshoot viewing PDF files on the web - Adobe Support
Troubleshoot viewing PDF files on the web ; Open Reader or Acrobat. Choose Help > Check for Updates. Acrobat 9 and earlier: If...
Read more >node.js - Handling HTML PDFs with Auth Required Images
A request to something like GET /user/images/<imageId> will fail due to the session not being set when the request is made inside the...
Read more >Authentication and Authorization - Apache HTTP Server
Possible problems. Because of the way that Basic authentication is specified, your username and password must be verified every time you request a...
Read more >Network error loading pdf | Help Desk - E2Pdf
Hi, "Basic Auth" must not affect the functionality of plugin if you were authenticated, however if you are using some 3rd party plugins...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@tpeacock19 the one you ran into is not related to basic auth and is fixed here: https://github.com/brave/brave-browser/issues/1287 It’ll be included in 0.57.x but I’ll see if we can get it in 0.56.x which is about a week away.
Verification passed on
Used STR from OP.
Verification passed on
Verified passed with