Class constants MUST be declared in all upper case with underscore separators.
There are no exceptions granted in either case. CORS is a constant, Cors is a class. This is, by definition, an absolute requirement of the specification. If you want to adhere to a standard, you don't get to pick and choose which parts.
This is clearly stated:
There are no exceptions granted in either case.
CORS
is a constant,Cors
is a class. This is, by definition, an absolute requirement of the specification. If you want to adhere to a standard, you don't get to pick and choose which parts.