Page 1 of 1

Allow Cross Domain Requests

PostPosted: Fri Jun 08, 2018 2:05 pm
by mstone121
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

Re: Allow Cross Domain Requests

PostPosted: Mon Jun 11, 2018 12:58 pm
by rmeden
are you using SD to generate a public web page? That's considered redistribution and we're not licensed for it from Gracenote.

Re: Allow Cross Domain Requests

PostPosted: Tue Jun 12, 2018 11:36 am
by mstone121
No, it's for project that exists only on my home network.

Re: Allow Cross Domain Requests

PostPosted: Tue Jun 12, 2018 12:25 pm
by rmeden
Ok, so no problem on the legal side... RobertK, something to consider. (not sure if there is any downside on your end)

Re: Allow Cross Domain Requests

PostPosted: Wed Jun 20, 2018 12:20 pm
by kobitate94
Any updates on this? Running into the cross origin issue as well (same goes for me with running my application on a private local webpage).

Re: Allow Cross Domain Requests

PostPosted: Thu Jun 28, 2018 2:57 pm
by mstone121
Hey guys,

Any word on this? I've been waiting about two weeks for a response.

Matt