- URL:https://<soaphandlerconfig-url>/edit(POST only)
- Required Capability:Default administrator role | Security and Infrastructure
- Version Introduced:11.0
Description
The edit operation allows you to restrict cross-domain requests to specific domains, including SOAP and OGC service requests. By default, no domains are restricted.
Request parameters
Parameter | Details |
---|---|
allowedOrigins | A comma-separated list of URLs of domains allowed to make requests. The default value, *, denotes all domains, meaning none are restricted. Examples
|
f | The response format. The default response format is html. Values: html | json | pjson |
Example usage
The following is a sample POST request for the edit operation, which modifies the allowedOrigins parameter to include a list of URLs:
POST /webadaptor/admin/system/handlers/soap/soaphandlerconfig/edit HTTP/1.1
Host: machine.domain.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []
allowedOrigins=https://gisserver1.example.com,https://gisserver2.example.com&f=pjson
JSON Response example
{"status": "success"}