Getting CORS on Login API

I’m trying to call Login API from the react app. But I’m getting a CORS error even though I’ve added allow_cors: * in site_config.json