Skip to content

Commit

Permalink
add cors
Browse files Browse the repository at this point in the history
  • Loading branch information
Cifko committed Oct 27, 2023
1 parent 3f1ac5a commit 83c65bb
Show file tree
Hide file tree
Showing 3 changed files with 1,916 additions and 7,225 deletions.
2 changes: 2 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const path = require("path");
const cookieParser = require("cookie-parser");
const logger = require("morgan");
const asciichart = require("asciichart");
const cors = require("cors");

var indexRouter = require("./routes/index");
var blocksRouter = require("./routes/blocks");
Expand Down Expand Up @@ -87,6 +88,7 @@ app.use(
);
app.use(cookieParser());
app.use(express.static(path.join(__dirname, "public")));
app.use(cors());

app.use("/", indexRouter);
app.use("/blocks", blocksRouter);
Expand Down
Loading

0 comments on commit 83c65bb

Please sign in to comment.