Comments (8)
Please check is [email protected] works for you?
from sp-rest-proxy.
[email protected] - this should not rewrite a Digest header.
from sp-rest-proxy.
It's working. Thank you for the quick support.
from sp-rest-proxy.
Hi there,
SharePoint REST API doesn't use DETELE HTTP verb, but POST with X-HTTP-Method: "DELETE" header.
Please double check.
from sp-rest-proxy.
Directly on SharePoint, we are using the DELETE method and works perfectly for this case.
If it makes sense for the project to implement the DELETE method will be very useful.
from sp-rest-proxy.
Oh, didn't know they added non POST methods support. Historically, it was 10+ years POST + X-HTTP-Method.
Will take a look.
from sp-rest-proxy.
Thank you @koltyakov, it works. But, now the response returns a 403 Forbidden
.
We manually copy the __REQUESTDIGEST
input from the original SharePoint site, but without effect for now.
We continue to investigate that. If you have some idea, we appreciate that.
REQUEST
Request URL:
https://localhost:4200/.../_api/web/lists/GetByTitle('Components')/Items(1)/AttachmentFiles/GetByFileName('logo.png')
Request Method:
DELETE
Status Code:
403 Forbidden
X-RequestDigest:
0x...,19 Nov 2021 11:19:04 -0000
from sp-rest-proxy.
@magnobiet, could you also try deleting attachment with a common (for SharePoint) approach (https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/working-with-folders-and-files-with-rest)?
from sp-rest-proxy.
Related Issues (20)
- OndemandCredentials Electron Mac HOT 6
- Identical requests - succeeding and failing HOT 4
- Can this react app be deployed as a web app on to a windows server so that users can access the app outside of the server ? HOT 6
- Host "sp-rest-proxy" as an independent web-app on Azure or pass authentication in configs to be used in CI/CD pipeline HOT 1
- Can this proxy be used when the host SP environment (on prem) has a "strict-origin-when-cross-origin" HTTP referrer policy? HOT 3
- sharepoint MFA bypass HOT 2
- [Feature query] Can the proxy be made to connect to multiple sites? HOT 1
- sp-rest-proxy with sharepointplus HOT 10
- POST request fails when calling the proxy (adding extra path to sharepoint request) HOT 5
- Proxy Error: Cannot read properties of null (reading 'toString') (see more in sp-rest-proxy console) HOT 4
- Version 3.3.4 broken for OnpremiseUserCredentials HOT 5
- Cannot read properties of null (reading 'toString') HOT 3
- On Demand - cannot read properties of null / childprocess.spawnsync EONENT Error HOT 2
- Proxy approach for Azure Active Directory HOT 2
- Typescript import HOT 1
- Setting siteUrl programatically HOT 4
- sp-rest-proxy does not work with Node 18.16.0 (current LTS) HOT 5
- Thank you HOT 1
- Docker HOT 2
- JSOM using sp-rest-proxy / clarification needed HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sp-rest-proxy.