CORS header error while using programs service

57 views
Skip to first unread message

Aparna P

unread,
Aug 1, 2017, 8:58:28 AM8/1/17
to General Open edX discussion
Hi all,
This is regarding enabling the programs feature in Open edX Ficus.2

I have followed this link in order to enable the 'programs' feature: https://github.com/edx/programs/blob/master/docs/getting_started.rst#id3

I logged into Studio and clicked on the green 'New Program' button. This throws up a blank page. When I inspected the 'Network Monitor' in my browser, the response code from programs service URL http://<my server IP>:8004/api/v1/organizations/?page_size=1000 is 200 but the response payload is blank. In the console, I can see the following error:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http:/<my server IP>:8004/api/v1/organizations/?page_size=1000. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).

Would like to note here that I am able to access the same programs service URL(http://<my server IP>:8004/api/v1/organizations/?page_size=1000) by hitting it directly from the browser and it returns the organization json as below:

{"count":1,"previous":null,"num_pages":1,"results":[{"display_name":"My org","key":"MyOrg"}],"next":null}

So why am I getting a blank page? Am I missing something or is there some other configuration to be done? What is the next step?

Thanks,
Aparna


Clinton Blackburn

unread,
Aug 1, 2017, 6:20:42 PM8/1/17
to General Open edX discussion
Aparna,

Please note that the Programs Service is not supported. I don't believe we ever officially supported it for any release. The Discovery Service (https://github.com/edx/course-discovery/), which is supported in Ginkgo, is how programs will be managed going forward.

Clinton

Aparna P

unread,
Aug 16, 2017, 5:17:27 AM8/16/17
to General Open edX discussion
Thanks, Clinton.
Reply all
Reply to author
Forward
0 new messages