Allow Cross Domain Requests

Use this forum to discuss issues related to the SD-JSON service.

Allow Cross Domain Requests

Postby mstone121 » Fri Jun 08, 2018 2:05 pm

Hello,

Are there plans to add the "Access-Control-Allow-Origin" HTTP header to responses from the API server? Without it, webpages won't be able to access data from the API. My trial subscription ends today and without this feature it won't be worth it for me to pay for a subscription.

The header should look something like this:
Code: Select all
Access-Control-Allow-Origin: *


For more information on Cross Origin Resource Sharing, Mozilla has a good article: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS

Since most of the applications that use this API are not web browsers this likely isn't a issue for most people, however I would bet that at least 95% of APIs out there have this enabled.

Related posts:
viewtopic.php?f=17&t=2680
https://github.com/SchedulesDirect/JSON ... /issues/75

If someone could look into this, it would be much appreciated.

Matt
mstone121
 
Posts: 4
Joined: Sat Jun 02, 2018 8:40 am

Re: Allow Cross Domain Requests

Postby rmeden » Mon Jun 11, 2018 12:58 pm

are you using SD to generate a public web page? That's considered redistribution and we're not licensed for it from Gracenote.
rmeden
SD Board Member
 
Posts: 1505
Joined: Tue Aug 14, 2007 2:31 pm
Location: Cedar Hill, TX

Re: Allow Cross Domain Requests

Postby mstone121 » Tue Jun 12, 2018 11:36 am

No, it's for project that exists only on my home network.
mstone121
 
Posts: 4
Joined: Sat Jun 02, 2018 8:40 am

Re: Allow Cross Domain Requests

Postby rmeden » Tue Jun 12, 2018 12:25 pm

Ok, so no problem on the legal side... RobertK, something to consider. (not sure if there is any downside on your end)
rmeden
SD Board Member
 
Posts: 1505
Joined: Tue Aug 14, 2007 2:31 pm
Location: Cedar Hill, TX


Return to SD-JSON service

Who is online

Users browsing this forum: No registered users and 2 guests

cron