From 756ad69b24eb4f91967ba278bb98272b12ce7532 Mon Sep 17 00:00:00 2001 From: praveen-klaytn Date: Tue, 1 Oct 2024 11:06:46 +0800 Subject: [PATCH] Updated cors --- app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.js b/app.js index 4f80a6e..308b71f 100644 --- a/app.js +++ b/app.js @@ -1,7 +1,7 @@ var express = require("express"); var app = express(); const fetch = require("node-fetch"); -const cors = require("cors"); +// const cors = require("cors"); var StatsData = {}; const { Flipside } = require("@flipsidecrypto/sdk"); @@ -20,7 +20,7 @@ const COIN_GECKO_URL = process.env.COINGECKO_API_KEY + process.env.COIN_GECKO_POSTFIX; -app.use(cors()); +// app.use(cors()); app.get("/analytics", async function (req, res) { return res.status(200).json({ success: true, data: StatsData });