-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
403 error _xsrf
missing from POST
#3
Comments
If it helps I have also had similar issues with an extension I wrote a while ago: |
Thanks @SimonBiggs :)
Reading a few answers on stakcoverflow it seems like this happens when Jupyter notebook browser tab is idle for too long. Can you try refreshing browser tab? If that fails, try restarting Jupyter once just to be sure. Also, when this error happens with GitPlus can you do normal Jupyter server operation such as saving a notebook? Another possibility is - You have 3 local_hostnames in the config. Is it possible that the browser tab is using one hostname and server APIs are on a different hostname? This could cause These above experiments would help me understand the issue better. Thanks. |
To add to that, I had the same issue on a completely different computer (still Windows 10) just using the default localhost host name and configuration. I'll see if the issue is repeatable on my home Linux machine. |
And unfortunately the idle tab isn't the solution I opened it immediately after boot, and also tried incognito mode. All had the same issue. |
I just came across this article. It mentions,
Just saw that JupyterLab is also adding _xsrf header. I will figure out a way to incorporate this in GitPlus and release an update. Stay tuned. Sorry for the inconvenience. This issue went undetected because it never occurred in my testing (maybe because I am using the same endpoint 127.0.0.1 everywhere or my xsrf config is disabled.) |
Meanwhile you can try out the extension by disabling xsrf. I wouldn't recommend it as a solution but just temporary workaround until I release a proper fix. |
No inconvenience, no need to be sorry :). Glad the tool is being made, will look forward to rolling it out at our centre at work. It meets quite a need, I have a centre wide hosted JupyterLab server, which is also under got version control. Helping people to create pull requests within JupyterLab as you are enabling it will massively help in the adoption of using got version as the standard. |
@SimonBiggs The fix for CORS issue is now released in version Please upgrade your extension with, You can verify the version with, Feel free to reopen the issue if you face any problems. |
Hi Amit,
Love your work :). Just wanted to give a heads up. Currently trying to set up GitPlus within our environment here.
I ran the following steps as per the readme:
as well as updating the config file as detailed below:
The error message within the jupyterlab server terminal is the following:
I'm more than happy to provide more debugging info. Thanks for building this.
Cheers,
Simon
The text was updated successfully, but these errors were encountered: