Path: / admin / realms / {realm} / applications-by-id / {app-name} / allowed-origins

Returns set of allowed origin. This is used for CORS requests. Access tokens will have their allowedOrigins claim set to this value for tokens created for this application.

Path parameters:
realm - realm name (not id!)
app-name -

Resource Methods
Method Summary
NameDescription
GET /admin/realms/{realm}/applications-by-id/{app-name}/allowed-originsReturns set of allowed origin.
PUT /admin/realms/{realm}/applications-by-id/{app-name}/allowed-originsChange the set of allowed origins.
DELETE /admin/realms/{realm}/applications-by-id/{app-name}/allowed-originsRemove set of allowed origins from current allowed origins list.

Method Detail

GET /admin/realms/{realm}/applications-by-id/{app-name}/allowed-origins

Returns set of allowed origin. This is used for CORS requests. Access tokens will have their allowedOrigins claim set to this value for tokens created for this application.

HTTP Example:
GET /admin/realms/{realm}/applications-by-id/{app-name}/allowed-origins
Output:
Set<String> -
Produces:
application/json

PUT /admin/realms/{realm}/applications-by-id/{app-name}/allowed-origins

Change the set of allowed origins. This is used for CORS requests. Access tokens will have their allowedOrigins claim set to this value for tokens created for this application.

HTTP Example:
PUT /admin/realms/{realm}/applications-by-id/{app-name}/allowed-origins
Input:
Set<String>
Output:
void
Consumes:
application/json

DELETE /admin/realms/{realm}/applications-by-id/{app-name}/allowed-origins

Remove set of allowed origins from current allowed origins list. This is used for CORS requests. Access tokens will have their allowedOrigins claim set to this value for tokens created for this application.

HTTP Example:
DELETE /admin/realms/{realm}/applications-by-id/{app-name}/allowed-origins
Input:
Set<String>
Output:
void
Consumes:
application/json