Update CORS

This commit is contained in:
Douglas Barone 2021-01-20 08:49:45 -04:00
parent 59a0d9951d
commit a69b1ec8ab

View File

@ -11,7 +11,12 @@ const server = new ApolloServer({
cors: cors:
process.env.NODE_ENV === 'production' process.env.NODE_ENV === 'production'
? { ? {
origin: ['http://ti.pp.ifms.edu.br'] origin: [
'http://ifms-pti-web.paas1.pp.ifms.edu.br',
'https://ifms-pti-web.paas1.pp.ifms.edu.br',
'http://ti.pp.ifms.edu.br',
'https://ti.pp.ifms.edu.br'
]
} }
: true, : true,
typeDefs, typeDefs,