SAS® Viya® web applications return the error "Invalid CORS Request" after you configure an additional reverse-proxy server or a load balancer


If you configure an additional third-party reverse-proxy server or load balancer in front of the Apache HTTP Server on your SAS Viya deployment, you might encounter issues in your SAS® web applications. When these issues occur, the following error is displayed:

Invalid CORS request.

Symptoms

You might experience any combination of the following symptoms when you are affected by this issue:

Problem Confirmation

To confirm that you are affected by the specific problem that is described in this note (and that you should follow the resolution steps below), the following must be true: 

If you need assistance with confirming that you are experiencing this specific issue, contact SAS Technical Support

Problem Resolution 

To resolve this issue, add the setting sas.commons.web.security.cors.allowedOrigins by using these steps: 

1. Log on to SAS® Environment Manager with an administrator account. 

 

2. Select Configuration ► Definitions ► sas.commons.web.security.cors 

 

3. Select sas.commons.web.security.cors and click the Edit icon that is circled below:

The "Edit" icon, a pencil on paper, is circled in blue

 

4. Modify the value for allowedOrigins by adding the host name of your third-party reverse-proxy server or load balancer, as shown in this example:  

The text in the allowedOrigins box, "https://external.sasviya.com", is selected

5. Click Save to save your changes to that setting. 

 

6. Restart all services in your SAS Viya environment.

After that, try to re-create the issue to ensure that those steps resolve the behavior. If the problem is not resolved, contact SAS Technical Support for assistance.