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

Remove Dependency on InstallTrigger. Replacement is OnBeforeSendHeade… #75

Merged
merged 2 commits into from
Jul 1, 2022

Conversation

kellenmurphy
Copy link
Contributor

…rsOptions.EXTRA_HEADERS and OnHeadersReceivedOptions.EXTRA_HEADERS predefined constants.

This fixes #74, implementing Chrome-specific checks to predefined constants that return 'extraHeaders' for Chrome only, and are undefined for other browsers, which we can then filter.

…rsOptions.EXTRA_HEADERS and OnHeadersReceivedOptions.EXTRA_HEADERS predefined constants.
src/SAMLTrace.js Outdated Show resolved Hide resolved
@tvdijen
Copy link
Member

tvdijen commented Jul 1, 2022

@khlr Up to you to merge this.. It's just not my expertise

@thijskh thijskh requested a review from khlr July 1, 2022 18:01
@khlr
Copy link
Contributor

khlr commented Jul 1, 2022

filter(Boolean) is a really smart idea. I like it 🙂👍

I'm just wondering if this will work in Firefox. I can't debug it right now. Did you already debug the change @kellenmurphy ?

I think there's a possible null reference when accessing the both FooOptions.EXTRA_HEADERS because the options objects only exist in chrome but not in Firefox?

@khlr
Copy link
Contributor

khlr commented Jul 1, 2022

Ah well, forgot what I said 😁 Accessing the options results in undefined if they don't exist. And undefined is falsy which means it will be just filtered out 👍

@khlr khlr merged commit c14736c into simplesamlphp:main Jul 1, 2022
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.

SAMLTracer.js Error in Firefox Developer Edition (103.0b2)
3 participants