Skip to content

Commit

Permalink
feat: sync staging → main
Browse files Browse the repository at this point in the history
Signed-off-by: Griko Nibras <[email protected]>
  • Loading branch information
grikomsn committed Jan 25, 2024
2 parents 0f62380 + e747d90 commit e9a04d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/api/nodes/[$chainID]/[[...$args]].ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const config: PageConfig = {
export default async function handler(req: NextRequest) {
try {
if (req.method === "OPTIONS" && process.env.NODE_ENV === "production") {
const allowedDomains = await getCorsDomains();
const allowedDomains = (await getCorsDomains()) ?? [];
if (allowedDomains.length > 0) {
const origin = req.headers.get("origin") || "";
if (!allowedDomains.includes(origin)) {
Expand Down

1 comment on commit e9a04d2

@vercel
Copy link

@vercel vercel bot commented on e9a04d2 Jan 25, 2024

Choose a reason for hiding this comment

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

Please sign in to comment.