Skip to main content

Adds a new origin to a specified subdomain for dynamic CORS (Cross-Origin Resource Sharing) management.

POST 

/api/origin

This endpoint allows users to add origins that are permitted to access resources on their specified subdomains. The action is authenticated using a JWT, and the subdomain must be owned by the user making the request. This will be checked by the server.

Request

Header Parameters

    x-subdomain stringrequired

    'x-subdomain' header represents the name of the subdomain on which the action is to be performed.

Body

required
    origin stringrequired

    Origin to be added

Responses

The origin was successfully added.

Schema
    id int64required

    Automatically generated id for new origin This can be used for further management

    origin stringrequired

    This duplicates origin from response payload to match REST specification

Loading...