#38546 closed defect (bug) (fixed)
REST API: Add PATCH to CORS allowed methods
Reported by: | jnylen0 | Owned by: | pento |
---|---|---|---|
Milestone: | 4.7 | Priority: | normal |
Severity: | normal | Version: | 4.7 |
Component: | REST API | Keywords: | has-patch |
Focuses: | Cc: |
Description
Currently it is not possible to send a CORS request with the PATCH method, even though this is supported by any "editable" resource in the REST API.
Attachments (1)
Change History (6)
#3
@
8 years ago
Did a search through the GH issues, and apparently people use the word "patch" a lot when developing OSS ;)
Found this, though... https://github.com/WP-API/WP-API/pull/768#issuecomment-73878867
Actually, our use of PATCH is kind of an abuse of the verb [...] We support it with the same semantics as PUT
Note: See
TracTickets for help on using
tickets.
Nice! I'm remembering there was a good amount of discussion around the use of PATCH, as I *think* there are some different semantics for it - I'm trying to find the github ticket where that was discussed but I'm failing to find it right now. @rmccue @rachelbaker for any help there.
As long as that doesn't impact this, this looks good to me.