hamitozdemir / email-finder

📧 Author e-mail finder for scientific publications.
https://hamitozdemir.github.io/email-finder/finder/
GNU General Public License v3.0
1 stars 0 forks source link

CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource #3

Open hamitozdemir opened 1 month ago

hamitozdemir commented 1 month ago

PubMed seems to have fully require/enforced access-control-allow-origin header? Local or online doesn't change the outcome. All PubMed queries return the following error:

Access to fetch at 'https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?db=pubmed&term=Murakami%20Ryuichi[Author]+&retmax=200' from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

hamitozdemir commented 1 month ago

Seems to also happen for PMC with the same error sometimes but it gets results for PMC after re-trying. Error reads as following for PubMed response when link is tested manually: Search Backend failed: An error occurred while processing request. Status: 500. Source: /api/search/?r= Details: Search is temporarily unavailable. Please try again later. Details: Cannot connect to SOLR