JSON Data source is throwing FORBIDDEN error


(Ryan Archer) #1

I'm trying to test out connecting to a Wordpress dev blog (that is behind our firewall) and on a different server than the one where Squiz Matrix is hosted. I've connected up the proper REST API JSON feed that is generated.

 

Problem is that I am receiving this error on the bottom of the details screen when I tried to get it to grab the JSON data (in the Raw Source Data area:

Forbidden
You don't have permission to access /jol/wp-json/wp/v2/posts on this server.

I can access the JSON data no worries from the URL in a browser window. Am I having issues because it is behind a firewall and Squiz Matrix just does not like it? I have tested this out on my own public blog (not behind a firewall) and it works fine.


(Marcus Fong) #2

No, that doesn’t look like a firewall issue to me - it looks more like the WordPress blog is returning a 403 Forbidden error. A firewall problem would be more like a “request timed out” error.

You might want to check whether the WordPress blog has any access restrictions on it (for example, is it restricted to a particular internal IP range which contains your computer’s IP, but not the Matrix server’s IP?)