DanielGeoffreyHodgkins

DanielGeoffreyHodgkins

Fullstack Developer

Member Since 5 years ago

London

Experience Points
4
follower
Lessons Completed
6
follow
Lessons Completed
16
stars
Best Reply Awards
1
repos

631 contributions in the last year

Pinned
Activity
Oct
14
2 days ago
Activity icon
issue

DanielGeoffreyHodgkins issue comment expressjs/cors

DanielGeoffreyHodgkins
DanielGeoffreyHodgkins

Cors stopped working.

Everything was working perfectly fine for a 1-2 years but after returning to my application, the typical Cors error started showing up on console again. Here is quick code snip of what I have:

const express = require('express');
const cors = require('cors');
const app = express();

app.use(cors());

I tried updating dependencies such as cors and express but having no luck. Does anyone know of any packages that might interfere or updates that might cause an issue?

DanielGeoffreyHodgkins
DanielGeoffreyHodgkins

Also having the same issue with no rhyme or reason. Figuring out why this is happening is a nightmare and nothing I change seems to fix it