Sign in Join
FPDoc Onlineexperiment

TCORSSupport class

In unit HTTPDefs

Cross-Origin Resource Sharing support

Declaration

pascal
TCORSSupport = class(TPersistent)

Inheritance

  1. TCORSSupport
  2. TPersistent
  3. TObject

Description

TCORSSupport provides functionality for handling CORS (Cross-Origin Resource Sharing) requests. It manages allowed origins, methods, headers, and other CORS-related settings.

See also

Properties

EnabledpublishedEnables or disables CORS support
OptionspublishedCORS configuration options
AllowedMethodspublishedHTTP methods allowed for CORS requests
AllowedOriginspublishedOrigins allowed for CORS requests
AllowedHeaderspublishedHeaders allowed for CORS requests
MaxAgepublishedMaximum age for CORS preflight cache in seconds

Methods

CreatepublicCreates a new CORS support instance
ResolvedCORSAllowedOriginspublicResolves allowed origins for CORS requests
HandleRequestpublicHandles CORS request processing
AssignpublicAssigns CORS settings from another object

Inherited

From TPersistent (8)

AssignTo DefineProperties Destroy FPOAttachObserver FPODetachObserver FPONotifyObservers GetNamePath GetOwner

From TObject (40)

AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.