Added client URL to .env.example and cors
This commit is contained in:
@ -28,7 +28,7 @@ export class Server {
|
||||
constructor() {
|
||||
this.app = express()
|
||||
this.app.use(cors({
|
||||
origin: 'https://sylvan.quest'
|
||||
origin: config.CLIENT_URL
|
||||
}))
|
||||
this.app.use(express.json())
|
||||
this.app.use(express.urlencoded({ extended: true }))
|
||||
|
Reference in New Issue
Block a user