# IPFS Config on windows 10

**URL:** <https://discuss.ipfs.tech/t/ipfs-config-on-windows-10/3589>\
**Category:** Help\
**Tags:** go-ipfs\
**Created:** [August 9, 2018, 6:34pm UTC](https://discuss.ipfs.tech/t/ipfs-config-on-windows-10/3589 "2018-08-09T18:34:17Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![kkagill](https://avatars.discourse-cdn.com/v4/letter/k/7993a0/32.png) [@kkagill](https://discuss.ipfs.tech/u/kkagill)\
**Post date:** [August 9, 2018, 6:34pm UTC](https://discuss.ipfs.tech/t/ipfs-config-on-windows-10/3589/1 "2018-08-09T18:34:17Z")

</div>

I’m trying to execute these commands on windows 10 powershell

```
./ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["*"]'
./ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods "[\"PUT\", \"POST\", \"GET\"]"
./ipfs config --json API.HTTPHeaders.Access-Control-Allow-Credentials '["true"]'

```

When I try the first one, I get this error:

```
Error: failed to unmarshal json. invalid character '*' looking for beginning of value

```

so I tried with this one suggested from [here](https://github.com/ipfs/go-ipfs/issues/2034).

```
./ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin "[\"*\"]"

```

And the result:

```
Error: Unknown Command "API.HTTPHeaders.Access-Control-Allow-Origin"

```

How come ipfs team didn’t take this into consideration when they have windows version of it?

Anyone know the proper commands for above IPFS configs on windows 10 using powershell?

---

<div class="post-metadata">

**Author:** ![stebalien](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/stebalien/32/156_2.png) [@stebalien](https://discuss.ipfs.tech/u/stebalien)\
**Post date:** [August 9, 2018, 7:58pm UTC](https://discuss.ipfs.tech/t/ipfs-config-on-windows-10/3589/2 "2018-08-09T19:58:44Z")

</div>

You may need to escape the `*` (`\*`).

---

<div class="post-metadata">

**Author:** ![kkagill](https://avatars.discourse-cdn.com/v4/letter/k/7993a0/32.png) [@kkagill](https://discuss.ipfs.tech/u/kkagill)\
**Post date:** [August 9, 2018, 9:26pm UTC](https://discuss.ipfs.tech/t/ipfs-config-on-windows-10/3589/3 "2018-08-09T21:26:43Z")

</div>

I didn’t quite undertand that. Could you type in full command?

---

<div class="post-metadata">

**Author:** ![stebalien](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/stebalien/32/156_2.png) [@stebalien](https://discuss.ipfs.tech/u/stebalien)\
**Post date:** [August 9, 2018, 9:56pm UTC](https://discuss.ipfs.tech/t/ipfs-config-on-windows-10/3589/4 "2018-08-09T21:56:52Z")

</div>

Try `./ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin "[\"\*\"]"`. Note: I don’t use windows so I have no idea if this’ll actually work.

---

<div class="post-metadata">

**Author:** ![kkagill](https://avatars.discourse-cdn.com/v4/letter/k/7993a0/32.png) [@kkagill](https://discuss.ipfs.tech/u/kkagill)\
**Post date:** [August 9, 2018, 10:10pm UTC](https://discuss.ipfs.tech/t/ipfs-config-on-windows-10/3589/5 "2018-08-09T22:10:16Z")

</div>

Thanks. I ran that command but I still got the same error.

> Error: Unknown Command “API.HTTPHeaders.Access-Control-Allow-Origin”

Seems like configuring CORS is not possible in windows environment.

---

<div class="post-metadata">

**Author:** ![stebalien](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/stebalien/32/156_2.png) [@stebalien](https://discuss.ipfs.tech/u/stebalien)\
**Post date:** [August 9, 2018, 10:30pm UTC](https://discuss.ipfs.tech/t/ipfs-config-on-windows-10/3589/6 "2018-08-09T22:30:36Z")

</div>

> [@kkagill](#):
>
> ./ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin

Try using something other than powershell (e.g., git bash).

---

<div class="post-metadata">

**Author:** ![kkagill](https://avatars.discourse-cdn.com/v4/letter/k/7993a0/32.png) [@kkagill](https://discuss.ipfs.tech/u/kkagill)\
**Post date:** [August 9, 2018, 10:45pm UTC](https://discuss.ipfs.tech/t/ipfs-config-on-windows-10/3589/7 "2018-08-09T22:45:58Z")

</div>

Wow using git bash worked. Thank you so much.
