You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
which triggers a preflight request. Unfortunately YouTube blocks that request because the method used for the preflight request is OPTIONS and returns a 405. Because this request fails, no actual (GET) request is being invoked and I cannot query YouTube's API.
I am not quite sure where these headers come from and if they can be disabled.
The text was updated successfully, but these errors were encountered:
Hi
I am trying to use
reqwest
with YouTube's oEmbed API. As compared to a plainXMLHttpRequest
,reqwest
adds 2 headers:which triggers a preflight request. Unfortunately YouTube blocks that request because the method used for the preflight request is
OPTIONS
and returns a 405. Because this request fails, no actual (GET
) request is being invoked and I cannot query YouTube's API.I am not quite sure where these headers come from and if they can be disabled.
The text was updated successfully, but these errors were encountered: