Skip to content
This repository has been archived by the owner on Mar 25, 2022. It is now read-only.

ipfs: enable CORS for API #68

Merged
1 commit merged into from
Aug 26, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 23 additions & 1 deletion solarnet/roles/ipfs/templates/config.j2
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,29 @@
},
"Gateway": {
"RootRedirect": "",
"Writable": false
"Writable": false,
"HTTPHeaders": {
"Access-Control-Allow-Origin": [
"http://gateway.ipfs.io",
"http://ipfs.io",
"http://localhost",
"http://localhost:8080",
"http://127.0.0.1",
"http://127.0.0.1:8080"
]
}
},
"API": {
"HTTPHeaders": {
"Access-Control-Allow-Origin": [
"http://gateway.ipfs.io",
"http://ipfs.io",
"http://localhost",
"http://localhost:8080",
"http://127.0.0.1",
"http://127.0.0.1:8080"
]
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably want a similar set for Gateway.HTTPHeaders

},
"SupernodeRouting": {
"Servers": []
Expand Down