BookmarkSubscribeRSS Feed
EyalGonen
Lapis Lazuli | Level 10

Hi experts,

 

I am running a Go app which I developed which invokes SAS Viya REST API. The Go app runs on my PC and remotely invokes SAS Viya methods on a remote SAS Viya deployment. No browser is involved here.

 

So far, all my requests were GET requests and they all worked fine. Now I am trying to issue a POST request to create a new folder using the instructions at https://developer.sas.com/rest-apis/folders-v5?operation=createFolder and I get back 403 Forbidden reply. I am trying to create a folder in my personal "My Folders" so it cannot be a permission problem on the SAS Viya folders side.

 

I wonder if this can be due to CORS? If so, what should I type in the "allowedOrigins" option for CORS settings in SAS for this Go app to work?

1 REPLY 1
ChrisNZ
Tourmaline | Level 20

Ask the platform admin to check the logs and tell you why the access is denied.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 377 views
  • 0 likes
  • 2 in conversation