Sign in Join
FPDoc Onlineexperiment

TCORSSupport.HandleRequest function

Member of TCORSSupportpublicIn unit HTTPDefs

Handles CORS request processing

Declaration

pascal
function HandleRequest(aRequest: TRequest; aResponse: TResponse; 
 aOptions: THandleCORSOptions=[hcDetect]): Boolean
 ; virtual

Arguments

aRequest

HTTP request to handle for CORS

aResponse

HTTP response to populate with CORS headers

aOptions

CORS handling options to apply

Function result

True if CORS request was handled, False otherwise

Description

HandleRequest processes CORS headers and validation for the HTTP request. It returns the appropriate CORS handling result based on the request and configuration.

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