Sign in Join
FPDoc Onlineexperiment

TCORSSupport.ResolvedCORSAllowedOrigins function

Member of TCORSSupportpublicIn unit HTTPDefs

Resolves allowed origins for CORS requests

Declaration

pascal
function ResolvedCORSAllowedOrigins(aRequest: TRequest): string
 ; virtual

Arguments

aRequest

HTTP request to resolve origins for

Function result

Resolved list of allowed origins

Description

ResolvedCORSAllowedOrigins resolves the list of allowed origins for the current request. It processes the configured origins and returns the applicable ones based on the request context.

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