Skip to content

Commit

Permalink
comments added/removed
Browse files Browse the repository at this point in the history
  • Loading branch information
if22b088 committed Aug 25, 2024
1 parent e6db0b1 commit 84c4413
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ var todosRouter = require('./routes/todos');

var app = express();
app.use(cors());
console.log("WE ARE ON THE SERVER!");

// view engine setup
app.set('views', path.join(__dirname, 'views'));
Expand Down Expand Up @@ -48,7 +47,7 @@ var logger = require('morgan');
const corsOptions = {
origin: '*',
//origin: '*,http://10.0.1.20, http://34.228.142.201/',
//origin: 'http://44.219.67.143/',
methods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'],
allowedHeaders: ['Content-Type', 'Authorization']
//credentials: true,
Expand Down

0 comments on commit 84c4413

Please sign in to comment.