diff --git a/backend.js b/backend.js index 2ae9234..9b1a3ac 100644 --- a/backend.js +++ b/backend.js @@ -4,12 +4,6 @@ const app = express(); app.use(express.static(__dirname)); -app.use((req, res, next) => { - res.header('Access-Control-Allow-Origin', '*'); - res.header('Access-Control-Allow-Methods', 'GET, POST, OPTIONS'); - res.header('Access-Control-Allow-Headers', 'Origin, X-Requested-With, Content-Type, Accept'); - next(); -}); app.listen(3000, () => { diff --git a/index.html b/index.html index 65ff06a..adbf7d9 100644 --- a/index.html +++ b/index.html @@ -65,7 +65,7 @@