Class TRALCORSOptions

Unit

Declaration

type TRALCORSOptions = class(TPersistent)

Description

Internal CORS configuration of Server

Hierarchy

Overview

Methods

Public constructor Create;
Public destructor Destroy; override;
Public function GetAllowHeaders: StringRAL;
Public procedure AddAllowHeader(AValue: StringRAL);
Protected procedure SetAllowHeaders(AValue: TStringList);
Protected procedure SetDefaultHeaders;

Properties

Published property AllowHeaders: TStringList read FAllowHeaders write SetAllowHeaders;
Published property AllowOrigin: StringRAL read FAllowOrigin write FAllowOrigin;
Published property MaxAge: IntegerRAL read FMaxAge write FMaxAge;

Description

Methods

Public constructor Create;
 
Public destructor Destroy; override;
 
Public function GetAllowHeaders: StringRAL;
 
Public procedure AddAllowHeader(AValue: StringRAL);
 
Protected procedure SetAllowHeaders(AValue: TStringList);
 
Protected procedure SetDefaultHeaders;
 

Properties

Published property AllowHeaders: TStringList read FAllowHeaders write SetAllowHeaders;

List of headers that are allowed in the CORS configuration

Published property AllowOrigin: StringRAL read FAllowOrigin write FAllowOrigin;

List of IPs allowed to comunicate with the server

Published property MaxAge: IntegerRAL read FMaxAge write FMaxAge;

Time in miliseconds to allow an active CORS session



GitHub Repository
Generated by PasDoc 0.16.0.