Receiving a 403 error with my random quote machine

Receiving a 403 error with my random quote machine
0.0 0

#1

My random quote machine is giving me a 403 error when I try to retrieve quotes from forismatic.com.

Here’s the text of the error:

https://crossorigin.me/http://api.forismatic.com/api/1.0/?method=getQuote&format=jsonp&jsonp=showQuote&lang=en&key=15456 Failed to load resource: the server responded with a status of 403 ()

I’m not sure if this is being caused by forismatic.com or crossorigin.me.

Should I look for another quote api to use, or is there some way I can fix this?

Thanks in advance.


#2

INot sure if this helps, but 403 is a forbidden error. stripping the CORS proxy,
http://api.forismatic.com/api/1.0/?method=getQuote&key=15456&format=jsonp&jsonp=showQuote&lang=en
Returns something like

showQuote({“quoteText”:“The truth is always exciting. Speak it, then. Life is dull without it. “, “quoteAuthor”:“Pearl Buck”, “senderName”:””, “senderLink”:"", “quoteLink”:“http://forismatic.com/en/27ca9e6162/”})

Quote changes on each refresh so it must be an issue with crossorigin.me, which reports “header is required”.


#3

Do you know if there is a good alternative to crossorigin.me? I haven’t been able to find one.


#4

I’m not quite as far along in the FCC challenges. If I find anything I’ll put it here, but it might be awhile.


#5

Try this: http://cors-everywhere.herokuapp.com/