Imgur

שולם
Verified
על ידי Imgur | מְעוּדכָּן 22 दिन पहले | Entertainment
פּוֹפּוּלָרִיוּת

9.9 / 10

חֶבִיוֹן

1,132ms

רמת שירות

100%

Health Check

N/A

חזרה לכל הדיונים

Image route inconsistently returns 401 (Unauthorized)

Rapid account: Lymelight TO
LymelightTO
5 वर्ष पहले

As noted in another open ticket, the Image route is inconsistently throwing a 401 error on the OPTIONS request preceding a POST request to the route. The route works sometimes, and not other times. There is no apparent pattern for why this occurs, as nothing in my implementation changes between when it works and when it does not.

The entire error reads:

Access to XMLHttpRequest at 'https://imgur-apiv3.p.mashape.com/3/image' from origin 'https://XXX.app' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

The headers the query is being made with are:

“X-Requested-With”: “”,
“Cache-Control”: “”,
authorization: "Client-ID " + XXX,
“X-Mashape-Key”: XXX,

הצטרף לדיון - הוסף תגובה למטה:

התחבר / הירשם כדי לפרסם תגובות חדשות