jupyter / jupyter/notebook

403 GET /files/000001_0.jpg (172.25.5.220): Blocking request from unknown origin

Open
#4,783 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
13.3k
Forks
5.8k
Avg merge
6d 11h
Merged PRs (30d)
7

Description

Hello! I want to display the images in the server through an html file.My jupyter version:

`conda list | grep jupyter
jupyter 1.0.0 py36_7 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
jupyter_client 5.3.1 py_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
jupyter_console 6.0.0 py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
jupyter_core 4.5.0 py_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
`
I wrote a code in the test.html file.
``
I use the chrome browser to open the test.html file. However, the image resource cannot be displayed. I see the log of the jupyter service as follows:
`[W 17:26:18.895 NotebookApp] 403 GET /files/000001_0.jpg (172.25.5.220): Blocking request from unknown origin`
It's amazing. I right click on the chrome browser and select "New Tab Open Image", the image will be displayed normally.

Then I use win10 IE browser test, can display the image resources in the test.html file normally.

Is this a problem with the chrome browser? Does jupyter notebook not support chrome browser?

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the request from test.html in Chrome against the Jupyter server, comparing it with opening the image in a new tab and with the reported IE behavior. The issue names no source file or test, so trace the /files/000001_0.jpg request and its unknown-origin check. Done would require a confirmed diagnosis and a maintainer-approved fix or documented workaround.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook
Domain
security, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.