Use Case:
You want to customize the headers returned from REST API calls made to Acronis services in Acronis SCS Cyber Backup 12.5 Hardened Edition.
Solution:
On the Windows machine where the Acronis Management Server is installed do the following:
Navigate to C:\Program Files\Acronis\ApiGateway\ and find the file api_gateway.json
Open the file api_gateway.json in text editor and change the
opt_resp_headersto include the headers you require. See examples belowSave changes to the file
Restart all Acronis services on the machine from the services window. For specific service information, please see Acronis Cyber Backup 12.5 SCS Hardened Edition: Windows services and processes
Example optional response headers:
1 "opt_resp_headers": {
2 "headers": [
3 {
4 "name": "X-Opt-Header-1",
5 "values": ["OptValue11", "OptValue12"]
6 }
7 ]
8 },Default optional response headers:
1 "opt_resp_headers": {
2 "headers": [
3 {
4 "name": "Strict-Transport-Security",
5 "values": ["max-age=31536000", "includeSubDomains"]
6 }
7 ]
8 },