-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
webui randomly stops working because API requests return 403 #1839
Comments
That's CORS rejecting the request, try setting |
You can get the daemon to output debug info to console with |
Yes, sounds like CORS. However I wonder:
Can you please tell me how exactly to do this? I'm new to ipfs. |
Not sure, but this may be part of a bug we're about to ship a fix for. |
same problem here with the docker |
This is generally a CORS problem, see |
In my
http://localhost:5001/webui
, sometimes the Ajax API requests stop working, returning 403 Forbidden.When trying the cURL (copied from browser dev console) in terminal, it also returned 403.
Interesting find: when removing the "Referer" header from the request, the 403 went away.
Related IRC snippet:
<rand_me> deltab: does that explain it for you?
no, but it indicates where to look
https://github.com/ipfs/go-ipfs/blob/d4938c9b0cd57c52c71ec83998a8288c3247826c/commands/http/handler.go#L350
If I restart the ipfs daemon, the issue sometimes persists and sometimes goes away. No pattern found so far.
Info about how to enable debug log in ipfs config is welcome. Maybe that would help.
The text was updated successfully, but these errors were encountered: