-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CORS issue when accessing shared DriveItems content #388
Comments
This is a known isssue - to microsoftgraph/microsoft-graph-docs-contrib#8394. Please check if the following workaround works for you Example - |
I see. Using the However |
@snebjorn can you explain what you mean by limit the response? |
it doesn't select the @microsoft.graph.downloadUrl property. It still returns everything |
@snebjorn I was able to reproduce the issue, turns out its a known issue, please use |
I'm closing this as the original issue and follow up issue are both known Although I had to do |
Bug Report
Prerequisites
For more information, see the
CONTRIBUTING
guide.Description
Requests to
https://docs.microsoft.com/en-us/graph/api/shares-get?view=graph-rest-1.0&tabs=http
Will result in a redirect that will fail with a CORS error
This is the error:
Steps to Reproduce
GET /shares/{shareIdOrUrl}/driveItem/content
from javscriptExpected behavior:
I expected to be able to either intercept the location header or download the file.
Actual behavior:
A CORS error was thrown
Additional Context
Add any other context about the problem here..
Usage Information
Request ID - Value of the
requestId
field if you are receiving a Graph API error responseSDK Version - [SDK version you are using]
"@microsoft/microsoft-graph-client": "^2.2.1"
The text was updated successfully, but these errors were encountered: