CorsConfig
final class CorsConfig (View source)
Carries the resolved cross-origin response policy used by CORS middleware.
Methods
__construct(bool $enabled, array $allowedOrigins, array $allowedMethods, array $allowedHeaders, array $exposedHeaders, bool $allowCredentials, int|null $maxAge)
Initializes one immutable CORS policy snapshot.
Details
__construct
__construct(bool $enabled, array $allowedOrigins, array $allowedMethods, array $allowedHeaders, array $exposedHeaders, bool $allowCredentials, int|null $maxAge)
Initializes one immutable CORS policy snapshot.