Skip to content

Drag-and-drop plugin fails with "'_xrsf' missing from POST" #830

@ghost

Description

Platform: Jupyter 4.2.1, Python 3.6.0, Chrome 55.

Well I really need this function, but it can't work in Chrome. Here is the log in Javascript Console:

[Warning] namespace.js:10 accessing `utils` is deprecated. Use `require("base/js/utils")` 
[Error] PUT http://localhost:8888/api/contents/21.jpg 403 (Forbidden)
[Log] Data transfer for drag-and-drop failed.

And the log in Jupyter:

[I 17:15:31.188 NotebookApp] Uploading file to
[W 17:15:31.206 NotebookApp] 403 PUT /api/contents/21.jpg (::1): '_xsrf' argument missing from POST
[W 17:15:31.208 NotebookApp] 403 PUT /api/contents/21.jpg (::1) 4.24ms referer=http://localhost:8888/notebooks/test.ipynb

It seems that the server rejected the uploading file. So is there any solution?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions