Skip to content

Commit

Permalink
fixed cors so i can fetch data from server, and tested to fetch the p…
Browse files Browse the repository at this point in the history
…roducts! ITS WORKING! HAPPY BOI :D
  • Loading branch information
fredrikwesterman committed Apr 16, 2024
1 parent 8ad6299 commit a040986
Show file tree
Hide file tree
Showing 15 changed files with 910 additions and 5 deletions.
3 changes: 3 additions & 0 deletions server/index.js
@@ -1,6 +1,9 @@
const express = require("express");
const app = express();
const mysql = require("mysql");
const cors = require("cors");

app.use(cors());

//connecting to my server.
const db = mysql.createConnection({
Expand Down
20 changes: 20 additions & 0 deletions server/node_modules/.package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 33 additions & 0 deletions server/node_modules/cors/CONTRIBUTING.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

58 changes: 58 additions & 0 deletions server/node_modules/cors/HISTORY.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions server/node_modules/cors/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a040986

Please sign in to comment.