Class ConfigFile.WebApi
Configuration values related to the WebApi web services.
Inheritance
System.Object
ConfigFile.WebApi
Namespace: SuperOffice.Configuration
Assembly: SoCore.dll
Syntax
public static class WebApi : Object
Properties
AuthorizeWithImplicit
Allow WebAPI to authorize with implicit identity from IIS. Default true.
Declaration
public static bool AuthorizeWithImplicit { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
AuthorizeWithTicket
Allow WebAPI to authorize with session tickets. Default true.
Declaration
public static bool AuthorizeWithTicket { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
AuthorizeWithUsername
Allow WebAPI to authorize with username + password. Default true.
Declaration
public static bool AuthorizeWithUsername { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
CORSEnable
Allow 3rd party web pages to call WebAPI from the browser. Default false.
Declaration
public static bool CORSEnable { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
CORSOrigin
If CORS is enabled, define the Origins that are allowed to call the WebAPI from the browser. Default '' (none).
Declaration
public static string CORSOrigin { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Documentation
Turn on/off Swagger/OpenAPI documentation generation for WebAPI. Turn off to reduce memory usage.
Declaration
public static bool Documentation { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |