Origin evil.com in Request Header

前端 未结 2 1669
抹茶落季
抹茶落季 2020-12-29 19:04

I am trying to send form data to a webservice but below \"Request Header\" in the \"Network\" of the Chrome DOM I got the origin \"evil.com\" and referer \"localhost:8080\".

相关标签:
2条回答
  • 2020-12-29 19:40

    To create a jupyter_notebook_config.py file if it is not there, , you can use the following command line from ~/.jupyter:

    $ jupyter notebook --generate-config
    

    Uncomment this

    c.NotebookApp.allow_origin = '*'
    
    0 讨论(0)
  • 2020-12-29 20:02

    The overwrite of the header origin is caused by Allow-Control-Allow-Origin: * chrome extension.

    Link to the extension

    Try disabling this extension in order to solve your problem.

    0 讨论(0)
提交回复
热议问题