Quotesbydesign api

Quotesbydesign api
0.0 0

#1

Hello,

Has anyone been getting this error recently:

XMLHttpRequest cannot load https://quotesondesign.com/wp-json/posts?filter[orderby]=rand&filter[posts_per_page]=25. The 'Access-Control-Allow-Origin' header has a value 'http://null' that is not equal to the supplied origin. Origin 'null' is therefore not allowed access.

I had the quote project working with this before? Does anyone know if something was changed recently?

Thanks for the help!


#2

You should read up on CORS and same-origin policy https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS. I believe this is the issue you are running into.


#3

I’ll check it out. Thanks!