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 payment proxy handling of OPTIONS #1836

Merged
merged 1 commit into from
Nov 2, 2023
Merged

Fix payment proxy handling of OPTIONS #1836

merged 1 commit into from
Nov 2, 2023

Conversation

lalexgap
Copy link
Contributor

@lalexgap lalexgap commented Nov 2, 2023

It looks like we weren't previously handling the OPTIONS preflight check in our ServeHTTP function.

This meant that whenver a browser did a preflight-check to the payment proxy (with an OPTIONS request) we would attempt to parse a voucher from it.

Copy link

netlify bot commented Nov 2, 2023

👷 Deploy Preview for nitrodocs processing.

Name Link
🔨 Latest commit f81d974
🔍 Latest deploy log https://app.netlify.com/sites/nitrodocs/deploys/6543fc8de8f2fe0008104448

Copy link

netlify bot commented Nov 2, 2023

Deploy Preview for nitro-payment-demo canceled.

Name Link
🔨 Latest commit f81d974
🔍 Latest deploy log https://app.netlify.com/sites/nitro-payment-demo/deploys/6543fc8d3878620007a94a7f

@lalexgap lalexgap merged commit 0f73668 into main Nov 2, 2023
7 checks 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.

2 participants