Old 1st November 2016, 07:29   #1
bencetimar
Junior Member
 
Join Date: Nov 2016
Posts: 1
Cross Domain Request issue

Hi,

I am using shoutcast API in order to build Chrome and Firefox extensions. For Chrome everything worked fine, however Firefox implementation got into a barrier.

We were facing cross domain request issue with Shoutcast API in Firefox 47.0.1. When we install the extension on Firefox 47.0.1, internally it hit the API Url using Jquery Ajax, but it gives us the issue: Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://api.shoutcast.com/legacy/Top500?k=DevID. (Reason: CORS header 'Access-Control-Allow-Origin' missing).

To resolve this issue I thought about the following: The Shoutcast team needs to enable the CORS at API side.

I really don't see how can it be solved from our end. Do you have suggestions?

The Customer support only said we should use https:// instead of http:// but that did not work and from that point I haven't got any response.

Note: We are using the same API DevID for Chrome and FF

I would appreciate any help in this matter.
bencetimar is offline   Reply With Quote
Old 2nd November 2016, 03:49   #2
jaromanda
Forum King
 
Join Date: Jun 2007
Location: Under the bridge
Posts: 2,289
If your Firefox extension is hampered by CORS issues, you've written it wrong

"If you don't like DNAS, write your own damn system"

So I did
jaromanda is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Technical Support

Tags
add-on, cors, extension, firefox

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump