webrecorder / pywb

Core Python Web Archiving Toolkit for replay and recording of web archives
https://pypi.python.org/pypi/pywb
GNU General Public License v3.0
1.37k stars 214 forks source link

[#715] Forward custom headers for cdx queries #813

Closed krakan closed 1 year ago

krakan commented 1 year ago

Description

Find custom http headers in the incoming request and forward them to the cdx-request. A custom header in this context is one prefixed with HTML_X_.

Motivation and Context

The difference between the block and exclude actions in the ACL is that the former should allow access to the index but not the data whereas the latter should block both index and data access.

See issue [#715] which is about allow_ignore_embargo not allowing access to the index when specified with a specific user. On investigation the issue also affected other use cases. The change set includes new tests for theses cases.

Types of changes

Checklist: