Skip to content

Commit aaf9665

Browse files
authored
Merge pull request #6807 from makermelissa/main
Allow Move/Rename to be called from localhost
2 parents b481411 + 1ae4d88 commit aaf9665

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/workflows.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ root will be returned.
138138
When requested with the `OPTIONS` method, the server will respond with CORS related headers. Most
139139
aren't needed for API use. They are there for the web browser.
140140

141-
* `Access-Control-Allow-Methods` - Varies with USB state. `GET, OPTIONS` when USB is active. `GET, OPTIONS, PUT, DELETE` otherwise.
141+
* `Access-Control-Allow-Methods` - Varies with USB state. `GET, OPTIONS` when USB is active. `GET, OPTIONS, PUT, DELETE, MOVE` otherwise.
142142

143143
Example:
144144

supervisor/shared/web_workflow/web_workflow.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -511,10 +511,10 @@ static void _reply_access_control(socketpool_socket_obj_t *socket, _request *req
511511
"HTTP/1.1 204 No Content\r\n",
512512
"Content-Length: 0\r\n",
513513
"Access-Control-Expose-Headers: Access-Control-Allow-Methods\r\n",
514-
"Access-Control-Allow-Headers: X-Timestamp, Content-Type, Authorization\r\n",
514+
"Access-Control-Allow-Headers: X-Timestamp, X-Destination, Content-Type, Authorization\r\n",
515515
"Access-Control-Allow-Methods:GET, OPTIONS", NULL);
516516
if (!_usb_active()) {
517-
_send_str(socket, ", PUT, DELETE");
517+
_send_str(socket, ", PUT, DELETE, MOVE");
518518
#if CIRCUITPY_USB_MSC
519519
usb_msc_unlock();
520520
#endif

0 commit comments

Comments
 (0)