API Errors on the Dashboard
From: https://haveibeenpwned.com/Dashboard#Domains
When clicking on the magnifying glass icon beside a domain on the dashboard, the resulting page displays the summary header but then just stops, showing a big Pwned logo.
The devtools console shows one of two errors (I'm not sure how to reproducibly trigger each one):
1) The request for the /domainsearchbycookie/example.com/json endpoint returns a 307 redirecting to https://haveibeenpwned.com/domainsearch/upgrade//example.com (which is a 404) I guess this is because my domain has too many addresses and I just have a free account. But still, the page should display a message instead of just stalling.
- or -
2) Console Error: Access to fetch at 'https://api.haveibeenpwned.com/domainsearchbycookie/example.com/json' from origin 'https://haveibeenpwned.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
We had a glitch that caused people with an insufficient subscription to see this behaviour. We've just pushed a fix so it should work now, you'll just need to upgrade to a subscription size that covers your domain to see results.