cors static method
void
cors({})
Set CORS headers
Implementation
static void cors({
String allowOrigin = '*',
String allowMethods = 'GET, POST, PUT, DELETE, OPTIONS',
String allowHeaders = 'Content-Type, Authorization',
}) {
response.header('Access-Control-Allow-Origin', allowOrigin);
response.header('Access-Control-Allow-Methods', allowMethods);
response.header('Access-Control-Allow-Headers', allowHeaders);
}