Skip to content

Commit

Permalink
make ethusd origin allow (#4108)
Browse files Browse the repository at this point in the history
  • Loading branch information
wraeth-eth authored Oct 28, 2023
1 parent 30b1c1d commit 78735e6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pages/api/juicebox/prices/ethusd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
'Cache-Control',
`s-maxage=${PRICE_REFRESH_INTERVAL_SECONDS}, stale-while-revalidate`,
)
res.setHeader('Access-Control-Allow-Origin', '*')
return res.status(200).json({ price })
} catch (err) {
logger.error({ error: err })
Expand Down

2 comments on commit 78735e6

@vercel
Copy link

@vercel vercel bot commented on 78735e6 Oct 28, 2023

Choose a reason for hiding this comment

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

@vercel
Copy link

@vercel vercel bot commented on 78735e6 Oct 28, 2023

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.