Create or replace a CORS allowlist
put
https://{your_site_interface}/opa-hub/api/12.2.39/corsallowlist
This operation will set or update all CORS allowlist information.
Request
There are no request parameters for this operation.
Supported Media Types
- application/json
Root Schema : schema
Type:
Show Source
object
-
determinationsServer(required): array
determinationsServer
A list of CORS allowed servers for the determinations server, one server per entry. An empty list means that all CORS requests are allowed.
-
hub(required): array
hub
A list of CORS allowed servers for the Hub REST services, one server per entry. An empty list means that all CORS requests are allowed.
-
interview(required): array
interview
A list of CORS allowed servers for the web determinations interview service, one server per entry. An empty list means that all CORS requests are allowed.
Nested Schema : determinationsServer
Type:
array
A list of CORS allowed servers for the determinations server, one server per entry. An empty list means that all CORS requests are allowed.
Show Source
Nested Schema : hub
Type:
array
A list of CORS allowed servers for the Hub REST services, one server per entry. An empty list means that all CORS requests are allowed.
Show Source
Nested Schema : interview
Type:
array
A list of CORS allowed servers for the web determinations interview service, one server per entry. An empty list means that all CORS requests are allowed.
Show Source
Security
-
Authorization: apiKey
Type:
apiKey
Description:Obtain a bearer token from https://{your_site_interface}/opa-hub/api/12.2.17/auth and use it in the Authorization header as: Bearer {token}.
-
oauth2_opa: oauth2
Type:
oauth2
Description:POST the OAuth2 Client Credentials parameters to https://{your_site_interface}/opa-hub/api/12.2.17/auth and use the access token from the response in the Authorization header.
Response
Supported Media Types
- application/json
200 Response
This operation successfully replaced the CORS allowlist information.
Root Schema : corsAllowlist
Type:
Show Source
object
-
determinationsServer(required): array
determinationsServer
A list of CORS allowed servers for the determinations server, one server per entry. An empty list means that all CORS requests are allowed.
-
hub(required): array
hub
A list of CORS allowed servers for the Hub REST services, one server per entry. An empty list means that all CORS requests are allowed.
-
interview(required): array
interview
A list of CORS allowed servers for the web determinations interview service, one server per entry. An empty list means that all CORS requests are allowed.
Nested Schema : determinationsServer
Type:
array
A list of CORS allowed servers for the determinations server, one server per entry. An empty list means that all CORS requests are allowed.
Show Source
Nested Schema : hub
Type:
array
A list of CORS allowed servers for the Hub REST services, one server per entry. An empty list means that all CORS requests are allowed.
Show Source
Nested Schema : interview
Type:
array
A list of CORS allowed servers for the web determinations interview service, one server per entry. An empty list means that all CORS requests are allowed.
Show Source
400 Response
The request could not be processed because it contains missing or invalid information.