If you have recently updated your release of SAS Viya and you have jobs that are submitted via a URL, you may have noticed that the results no longer appear formatted using standard SAS formatting. This is due to an update in the default content security policy setting in Stable 2024.02 onwards. In this article, I’ll explain the issue and show you how to resolve it so that you get the job results you need.
Previously, when you ran a job via a URL, you would get results that used standard SAS formatting. Consider the simple job:
proc print data=sashelp.class;
run;
Which creates the following result:
Select any image to see a larger version.
Mobile users: To view the images, select the "Full" version at the bottom of the page.
However, in Stable 2024.02 onwards, you may have noticed that you are instead getting this result:
This is because of a change in the content security policy.
To update the content security policy, you need to be logged in as an administrator. Then, you need to complete the following steps:
default-src 'none'; script-src 'self'; connect-src 'self'; img-src 'self';
style-src 'self' 'unsafe-inline'; frame-ancestors 'self'; form-action 'self';
Once you have made these changes and logged back in, test the job again by running it via URL. You should now see normally formatted results:
If your jobs stopped behaving the way you expect, you (or your administrator) may need to update your content security policy to allow SAS formatting to be displayed in job results. Stay tuned for more useful tips!
Find more articles from SAS Global Enablement and Learning here.
Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.
The rapid growth of AI technologies is driving an AI skills gap and demand for AI talent. Ready to grow your AI literacy? SAS offers free ways to get started for beginners, business leaders, and analytics professionals of all skill levels. Your future self will thank you.