seanmturley / natureddit

A simple Reddit client, featuring a landing page dedicated to nature with posts pulled from a curated list of subreddits.
0 stars 1 forks source link

Fix search GET requests #137

Closed seanmturley closed 11 months ago

seanmturley commented 11 months ago

Description

Search GET requests are currently failing - this applies to search results in the searchDropdown as well as full search results.

Trying to search for "path" i.e.: http://localhost:3000/natureddit/search?q=path&sort=relevance&t=all

Accesses the correct URL for the Reddit JSON API: https://www.reddit.com/search.json?q=path&sort=relevance&t=all This URL is accessible in the browser.

Need to investigate why attempting to access the search URLs via the GET request in the front end client is producing net::ERR_BLOCKED_BY_CLIENT. Could be CORS related, but this was working earlier.

EDIT: The GET requests are working in other browsers e.g. Edge, so it's probably caused by a browser extension. AdBlock is a likely culprit.

seanmturley commented 11 months ago

The problem turned out to be caused by Vivaldi's built in Tracker and Ad Blocking - setting this to "no blocking" fixes the issue.