-
-
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
add http://{127.0.0.1,localhost}[:5001] as allowed default CORS referer #1966
Conversation
License: MIT Signed-off-by: Michael Muré <mure.michael@gmail.com>
I like! Maybe we should do the same for the gateway? And also add :8080 to the API headers, to make the API-via-Gateway work? |
@MichaelMure yeah-- there is something very odd going on. this is supposed to happen naturally: https://github.com/ipfs/go-ipfs/blob/27eece3e81f4e946db4294702c9ac39bd86ccce6/core/corehttp/commands.go#L70 |
im not sure adding this to config is the right way-- i think we should fix the bug in the code. |
Oh @jbenet is right, we should fix the code |
Soooo, what happen is that the default origins are stored as string with a placeholder for the port (for instance |
I tried |
ah interesting. that's likely the problem! |
this is a priority fix as this is screwing up uses of the API. anybody have a bugfix? @whyrusleeping if we find a bugfix in the next couple of days can we fit this into 0.3.10 along with the other api fix? cc @dignifiedquire and @diasdavid as they're probably interested |
SGTM! :) |
Would love to have a fix for this yes, can't comment on race conditions in go code I'm afraid ;) |
I noticed the A possible fix: https://github.com/rht/go-ipfs/tree/fix/corsconfig (rht@e7dee98). I checked the |
+1 for this, webui is broken for me |
Fix #1883 and #1839 for me.
License: MIT
Signed-off-by: Michael Muré mure.michael@gmail.com