All Products
Search
Document Center

Function Compute:HTTPTriggerConfig

Last Updated:Aug 11, 2026

Parameter

Type

Description

Example

object

The HTTP trigger configuration.

authConfig

string

The authentication configuration.

{"JWKS":{"foo":"bar"},"TokenLookup":"header:Authorization:Bearer,cookie:AuthorizationCookie","ClaimPassBy":"query:uid:uid,header:name:name"}

authType

string

The authentication type. Valid values:

  • function: Authentication is required.

  • anonymous: Authentication is not required.

Note

The default value is function.

anonymous

corsConfig CORSConfig

The CORS configuration.

disableURLInternet

boolean

Specifies whether to disable access through the default public domain name. If set to true, accessing the default public URL of the function returns a 403 error. If set to false, access is not affected.

true

methods

array

The list of request methods. Multiple methods can be supported simultaneously.

string

The request method name. Valid values:

  • HEAD

  • DELETE

  • POST

  • GET

  • OPTIONS

  • PUT

  • PATCH

GET