HelloZeroNet / ZeroNet

ZeroNet - Decentralized websites using Bitcoin crypto and BitTorrent network
https://zeronet.io
Other
18.31k stars 2.26k forks source link

Wrapper nonce error. Please reload the page. #396

Open mindaslab opened 8 years ago

mindaslab commented 8 years ago

Got an error while pressing back button, these are the details:

{
    "GATEWAY_INTERFACE": "CGI/1.1", 
    "HTTP_ACCEPT": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", 
    "HTTP_ACCEPT_ENCODING": "gzip, deflate", 
    "HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.5", 
    "HTTP_CONNECTION": "keep-alive", 
    "HTTP_DNT": "1", 
    "HTTP_HOST": "127.0.0.1:43110", 
    "HTTP_REFERER": "http://127.0.0.1:43110/12CVHBbLwwYjgYtjpWmempoyZN7xWXJN8j/", 
    "HTTP_USER_AGENT": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0", 
    "PATH_INFO": "/12CVHBbLwwYjgYtjpWmempoyZN7xWXJN8j/", 
    "QUERY_STRING": "wrapper_nonce=7b91c27606d89595d7f04867107707ce7500b15d611742eefad19edf7b769398", 
    "REMOTE_ADDR": "127.0.0.1", 
    "REMOTE_PORT": "56084", 
    "REQUEST_METHOD": "GET", 
    "SCRIPT_NAME": "", 
    "SERVER_NAME": "localhost", 
    "SERVER_PORT": "43110", 
    "SERVER_PROTOCOL": "HTTP/1.1", 
    "SERVER_SOFTWARE": "gevent/1.1 Python/2.7", 
    "arguments": {
        "action": "main", 
        "batch": false, 
        "coffeescript_compiler": null, 
        "config_file": "zeronet.conf", 
        "connected_limit": 15, 
        "data_dir": "data", 
        "debug": false, 
        "debug_socket": false, 
        "disable_encryption": false, 
        "disable_sslcompression": true, 
        "disable_udp": false, 
        "fileserver_ip": "*", 
        "fileserver_port": 15441, 
        "homepage": "1HeLLo4uzjaLetFx6NH3PMwFP3qbRbTf3D", 
        "ip_external": null, 
        "keep_ssl_cert": false, 
        "log_dir": "log", 
        "max_files_opened": 1024, 
        "msgpack_purepython": true, 
        "open_browser": "default_browser", 
        "proxy": null, 
        "size_limit": 10, 
        "stream_downloads": false, 
        "tor": "enable", 
        "tor_controller": "127.0.0.1:9051", 
        "tor_proxy": "127.0.0.1:9050", 
        "trackers": [
            "zero://boot3rdez4rzn36x.onion:15441", 
            "zero://boot.zeronet.io#f36ca555bee6ba216b14d10f38c16f7769ff064e0e37d887603548cc2e64191d:15441", 
            "udp://tracker.coppersurfer.tk:6969", 
            "udp://tracker.leechers-paradise.org:6969", 
            "udp://9.rarbg.com:2710", 
            "http://tracker.aletorrenty.pl:2710/announce", 
            "http://explodie.org:6969/announce", 
            "http://torrent.gresille.org/announce"
        ], 
        "trackers_file": false, 
        "ui_ip": "127.0.0.1", 
        "ui_port": 43110, 
        "ui_restrict": false, 
        "use_openssl": true, 
        "use_tempfiles": false, 
        "verbose": false
    }, 
    "plugins": [
        "CryptMessage", 
        "Stats", 
        "Zeroname", 
        "Newsfeed", 
        "AnnounceZero", 
        "Trayicon", 
        "Sidebar"
    ], 
    "version_gevent": "1.1b1", 
    "version_python": "2.7.10 (default, Oct 14 2015, 16:09:02) \n[GCC 5.2.1 20151010]", 
    "version_zeronet": "0.3.6 r948", 
    "wsgi.url_scheme": "http"
}
daedalus commented 8 years ago

I have the same issue when going from: site/index.html to another: site/file.html

HelloZeroNet commented 8 years ago

probably you have to use target=_top on links

ghost commented 7 years ago

@mindaslab have you tried the use of use target=_top as suggested ? Did the problem remain ?

rick-li commented 7 years ago

I'm running into same issue, it can be reproduced in http://127.0.0.1:43110/tcmtest.bit

  1. click page1
  2. click page2.
  3. click back twice

I'm using target="_top"

Forbidden Wrapper nonce error. Please reload the page. Please report it if you think this an error.

Details:

{ "GATEWAY_INTERFACE": "CGI/1.1", "HTTP_ACCEPT": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,/;q=0.8", "HTTP_ACCEPT_ENCODING": "gzip, deflate, br", "HTTP_ACCEPT_LANGUAGE": "zh-CN,zh;q=0.8,en-US;q=0.6,en;q=0.4", "HTTP_CONNECTION": "keep-alive", "HTTP_HOST": "127.0.0.1:43110", "HTTP_REFERER": "http://127.0.0.1:43110/tcmtest.bit/page1.html", "HTTP_UPGRADE_INSECURE_REQUESTS": "1", "HTTP_USER_AGENT": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36", "PATH_INFO": "/tcmtest.bit/page1.html", "QUERY_STRING": "wrapper_nonce=be6e3ce3439d904f6b747c8b322de8399ed60cbd700846dcb486879e759f3c0f", "REMOTE_ADDR": "127.0.0.1", "REMOTE_PORT": "56615", "REQUEST_METHOD": "GET", "SCRIPT_NAME": "", "SERVER_NAME": "xxxxxxxxxxx", "SERVER_PORT": "43110", "SERVER_PROTOCOL": "HTTP/1.1", "SERVER_SOFTWARE": "gevent/1.2 Python/2.7", "arguments": { "action": "main", "batch": false, "bind": null, "bit_resolver": "1Name2NXVi1RDPDgf5617UoW7xA6YrhM9F", "coffeescript_compiler": null, "config_file": "zeronet.conf", "connected_limit": 8, "data_dir": "data", "db_mode": "speed", "debug": false, "debug_gevent": false, "debug_socket": false, "disable_db": false, "disable_encryption": false, "disable_sslcompression": true, "disable_udp": false, "end": true, "file_size_limit": 10, "fileserver_ip": "*", "fileserver_port": 15441, "fix_float_decimals": false, "homepage": "1HeLLo4uzjaLetFx6NH3PMwFP3qbRbTf3D", "ip_external": null, "ip_local": [ "127.0.0.1" ], "keep_ssl_cert": false, "language": "zh-tw", "log_dir": "log", "max_files_opened": 2048, "msgpack_purepython": true, "open_browser": null, "optional_limit": "10%", "proxy": null, "silent": false, "size_limit": 10, "stack_size": null, "stream_downloads": false, "tor": "enable", "tor_controller": "127.0.0.1:9051", "tor_hs_limit": 10, "tor_proxy": "127.0.0.1:9050", "trackers": [ "zero://boot3rdez4rzn36x.onion:15441", "zero://boot.zeronet.io#f36ca555bee6ba216b14d10f38c16f7769ff064e0e37d887603548cc2e64191d:15441", "udp://tracker.coppersurfer.tk:6969", "udp://tracker.leechers-paradise.org:6969", "udp://9.rarbg.com:2710", "http://tracker.opentrackr.org:1337/announce", "http://explodie.org:6969/announce", "http://tracker1.wasabii.com.tw:6969/announce" ], "trackers_file": false, "ui_host": null, "ui_ip": "0.0.0.0", "ui_port": 43110, "ui_restrict": false, "updatesite": "1UPDatEDxnvHDo7TXvq6AEBARfNkyfxsp", "use_openssl": true, "use_tempfiles": false, "verbose": false, "workers": 5 }, "plugins": [ "AnnounceZero", "CryptMessage", "FilePack", "MergerSite", "Mute", "Newsfeed", "OptionalManager", "PeerDb", "Sidebar", "Stats", "TranslateSite", "Trayicon", "Zeroname" ], "version_gevent": "1.2.2", "version_python": "2.7.13 (default, Dec 31 2016, 23:24:31) \n[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)]", "version_zeronet": "0.5.6 r2128", "wsgi.url_scheme": "http"