Class CORS

java.lang.Object
com.storedobject.core.CORS

public final class CORS extends Object
The CORS class manages Cross-Origin Resource Sharing (CORS) validation and handling for HTTP requests. It ensures that the origin of a request is allowed based on predefined rules and provides options to respond appropriately for valid and invalid origins. This class supports setting custom reject handling, processing allowed origins dynamically, and responding to CORS preflight and simple requests. The CORS class is tightly coupled with the Device interface, which represents the origin of the request context and utilizes configurations for dynamic CORS policies.
Author:
Syam