Custom strapi Access-Control-Allow-Origin

yes, sorry for late reply, i custom it at strapi-server.js
you can check my code below
{ name: 'strapi::cors', config: { headers: [ 'accept-language', 'Token', 'Content-Type', 'Authorization', 'Accept', 'Origin', ], origin: [ 'http://localhost:8080', 'https://dev.api.hoidapthuoc.com', 'http://localhost:1337', 'http://localhost:8000', 'https://dev.hoidapthuoc.com', ], }, },

1 Like