Add js.fetch:mode to be used in wasm.
This commit is contained in:
parent
f0c5180e03
commit
a27a5c67ea
1 changed files with 1 additions and 0 deletions
|
@ -53,6 +53,7 @@ func (n *NetBox) FetchSessionKey(privatekey string) error {
|
|||
}
|
||||
request.Header.Add("Accept", "application/json")
|
||||
request.Header.Add("Content-Type", "application/x-www-form-urlencoded")
|
||||
request.Header.Add("js.fetch:mode", "no-cors")
|
||||
request.Header.Add("Authorization", " Token "+n.Token)
|
||||
response, err := client.Do(request)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in a new issue