Skip to content

Commit 94cb2e9

Browse files
authored
Merge pull request #2862 from bigcommerce/joseph/options-api-handler
Handle OPTIONS requests via MakeswiftApiHandler
2 parents 5a33677 + 52207b6 commit 94cb2e9

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/heavy-cups-train.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@bigcommerce/catalyst-makeswift": patch
3+
---
4+
5+
fix: handle OPTIONS requests via MakeswiftApiHandler

core/app/api/makeswift/[...makeswift]/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ const handler = MakeswiftApiHandler(process.env.MAKESWIFT_SITE_API_KEY, {
4747
},
4848
});
4949

50-
export { handler as GET, handler as POST };
50+
export { handler as GET, handler as POST, handler as OPTIONS };

0 commit comments

Comments
 (0)