[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
Cross-Origin Resource Sharing support
Source position: httpdefs.pp line 727
type TCORSSupport = class(TPersistent) |
||
public |
||
constructor Create; virtual; |
|
Creates a new CORS support instance |
function ResolvedCORSAllowedOrigins(); virtual; |
|
Resolves allowed origins for CORS requests |
function HandleRequest(); virtual; |
|
Handles CORS request processing |
procedure Assign(); override; |
|
Assigns CORS settings from another object |
published |
||
property Enabled: Boolean; [rw] |
|
Enables or disables CORS support |
property Options: TCORSOptions; [rw] |
|
CORS configuration options |
property AllowedMethods: string; [rw] |
|
HTTP methods allowed for CORS requests |
property AllowedOrigins: string; [rw] |
|
Origins allowed for CORS requests |
property AllowedHeaders: string; [rw] |
|
Headers allowed for CORS requests |
|
Maximum age for CORS preflight cache in seconds |
|
end; |
|
Cross-Origin Resource Sharing support |
|
| | | ||
| | | ||
TCORSSupport provides functionality for handling CORS (Cross-Origin Resource Sharing) requests. It manages allowed origins, methods, headers, and other CORS-related settings.
|
Set of CORS options |
|
|
Set of CORS handling options |