Quantcast
Channel: Pixabay Forum - Questions about Pixabay
Viewing all articles
Browse latest Browse all 1344

API error responses don't have CORS headers, so my browser always blocks me from reading the error message (growkudos)

$
0
0
>Access to XMLHttpRequest at 'https://pixabay.com/api/...' from origin 'https://mysite.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. This means I can't tell the difference between '[ERROR 400]' and '[ERROR 429]', so I'm unable to tell the user of my site if there are no more pages for their search, or if the api key has been rate-limited. Would it be possible to add CORS headers to error responses from the API please? Cheers, Henry

Viewing all articles
Browse latest Browse all 1344

Trending Articles