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: don't send sec-fetch-mode header #12299

Merged
merged 2 commits into from
Jan 22, 2024
Merged

Conversation

oplik0
Copy link
Contributor

@oplik0 oplik0 commented Jan 22, 2024

Add a workaround for nodejs/undici#1305 required to remove Sec-Fetch-Mode header.

This is required because Threads seems to not return web-finger when Sec-Fetch-Mode is set to cors/no-cors/same-origin which are the only values NodeJS normally allows to set it to (despite the whole header making no sense on the server).

I did it for the request module in general since it seemed easier than doing a special case for AP and also means nothing else will run into this issue in the future.

@julianlam julianlam reopened this Jan 22, 2024
@NodeBB NodeBB deleted a comment from nodebb-misty Jan 22, 2024
@julianlam julianlam merged commit 2ce14f5 into NodeBB:activitypub Jan 22, 2024
1 check passed
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.

None yet

3 participants