isCORSRequest property Null safety

bool isCORSRequest

Whether or not this request is a CORS request.

This is true if there is an Origin header.

Implementation

bool get isCORSRequest => raw.headers.value("origin") != null;