Commit 4cda52f6 authored by Dmitriy Anisov's avatar Dmitriy Anisov

#78 починка cors

parent 3582e5b0
Pipeline #342 passed with stages
in 2 minutes and 37 seconds
...@@ -12,10 +12,10 @@ const bigBrother = require('./app/bigBrother') ...@@ -12,10 +12,10 @@ const bigBrother = require('./app/bigBrother')
const app = express(); const app = express();
const port = process.env.NODE_ENV !== 'test' ? 8000 : 8010; const port = process.env.NODE_ENV !== 'test' ? 8000 : 8010;
const corsOptions = { // const corsOptions = {
origin: 'http://104.248.198.29:3000', // origin: 'http://104.248.198.29:3000',
optionsSuccessStatus: 200 // optionsSuccessStatus: 200
} // }
app.use(cors()); app.use(cors());
app.use(express.json()); app.use(express.json());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment