Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: extend header denylist #889

Merged
merged 1 commit into from
Nov 14, 2023
Merged

Conversation

pauldambra
Copy link
Member

@pauldambra pauldambra requested a review from a team November 14, 2023 11:41
Copy link
Collaborator

@benjackwhite benjackwhite left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice assist @marandaneto 🙌

Copy link

Size Change: +864 B (0%)

Total Size: 733 kB

Filename Size Change
dist/array.full.js 174 kB +216 B (0%)
dist/array.js 115 kB +216 B (0%)
dist/es.js 115 kB +216 B (0%)
dist/module.js 115 kB +216 B (0%)
ℹ️ View Unchanged
Filename Size
dist/exception-autocapture.js 12 kB
dist/recorder-v2.js 104 kB
dist/recorder.js 58.3 kB
dist/surveys.js 39.8 kB

compressed-size-action

@pauldambra pauldambra merged commit 6b70edb into master Nov 14, 2023
14 checks passed
@pauldambra pauldambra deleted the fix/extend-header-denylist branch November 14, 2023 11:54
const removeAuthorizationHeader = (data: NetworkRequest): NetworkRequest => {
delete data.requestHeaders?.['Authorization']
HEADER_DENYLIST.forEach((header) => delete data.requestHeaders?.[header])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pauldambra just be sure that delete data.requestHeaders?.[header] is case insensitive since headers are not always all upper case, camel case, or just capitalised.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants