Skip to content

Commit

Permalink
Merge pull request #3 from kaiachain/feat/remove-cors
Browse files Browse the repository at this point in the history
Updated cors
  • Loading branch information
praveen-kaia authored Oct 1, 2024
2 parents c426725 + 756ad69 commit fb632e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
@@ -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");
Expand All @@ -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 });
Expand Down

0 comments on commit fb632e7

Please sign in to comment.