Skip to content
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

All of POST request's results are 403 Forbidden #596

Closed
shanelau opened this issue Jul 11, 2017 · 5 comments
Closed

All of POST request's results are 403 Forbidden #596

shanelau opened this issue Jul 11, 2017 · 5 comments

Comments

@shanelau
Copy link

error:

image

ipfs gateway config:

image

@shanelau
Copy link
Author

config ~/.ipfs/config

  "API": {
    "HTTPHeaders": {
      "Access-Control-Allow-Methods": [
        "PUT",
        "GET",
        "POST"
      ],
      "Access-Control-Allow-Origin": [
        "*"
      ]
    }
  },

@vutuyetmai130398
Copy link

@shanelau I try to fix the ~/.ipfs/config as the same you, but it still go into the Web UI of IPFS when i run http://local:5001/ipfs/(PeerId)/#. It show me the 403 error.

@hleb-albau
Copy link

Same problem ;(

@NatoBoram
Copy link

NatoBoram commented Apr 14, 2020

I tried to copy @shanelau's snippet but it seems like this might be a bug with go-ipfs v0.5.0-rc1.

@aliawais0007
Copy link

This Command Works for me
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["'"$origin"'", "http://127.0.0.1:8080","http://localhost:3000"]' you can allow the request from multiple origins

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants