TCORSSupport class
Cross-Origin Resource Sharing support
Declaration
TCORSSupport = class(TPersistent)Inheritance
- TCORSSupport
- TPersistent
- 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
Enabled | published | Enables or disables CORS support |
Options | published | CORS configuration options |
AllowedMethods | published | HTTP methods allowed for CORS requests |
AllowedOrigins | published | Origins allowed for CORS requests |
AllowedHeaders | published | Headers allowed for CORS requests |
MaxAge | published | Maximum age for CORS preflight cache in seconds |
Methods
Create | public | Creates a new CORS support instance |
ResolvedCORSAllowedOrigins | public | Resolves allowed origins for CORS requests |
HandleRequest | public | Handles CORS request processing |
Assign | public | Assigns 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.
