Cors update
This commit is contained in:
parent
3fbc5f4e87
commit
929a36554a
@ -27,7 +27,9 @@ export class Server {
|
||||
*/
|
||||
constructor() {
|
||||
this.app = express()
|
||||
this.app.use(cors())
|
||||
this.app.use(cors({
|
||||
origin: 'https://sylvan.quest'
|
||||
}))
|
||||
this.app.use(express.json())
|
||||
this.app.use(express.urlencoded({ extended: true }))
|
||||
this.http = httpServer(this.app)
|
||||
|
Loading…
x
Reference in New Issue
Block a user