From 78735e6daf6f7ea195a5f2e8254f9fe38d648c95 Mon Sep 17 00:00:00 2001 From: wraeth-eth <104132113+wraeth-eth@users.noreply.github.com> Date: Sat, 28 Oct 2023 16:58:25 +1100 Subject: [PATCH] make ethusd origin allow (#4108) --- src/pages/api/juicebox/prices/ethusd.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pages/api/juicebox/prices/ethusd.ts b/src/pages/api/juicebox/prices/ethusd.ts index bf64525154..b6f56c9ccc 100644 --- a/src/pages/api/juicebox/prices/ethusd.ts +++ b/src/pages/api/juicebox/prices/ethusd.ts @@ -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 })