Permition for Cross domain access
-
@mahidul-moon this is from Golang server code right? Can you share your code and what your request looks like coming out of Golang?
-
@pitaj yes of course
data := map[string]string{"name" : group.Name} jsonData,_ := json.Marshal(data) url = models.Domain+"/api/v2/groups/" res,err := http.Post(url, "application/json", bytes.NewBuffer(jsonData)) if err != nil{ fmt.Println(err) }else{ fmt.Println(res) }
-
@mahidul-moon you'll have to pass a bearer token in, otherwise it won't know what user to act as
-
@mahidul-moon You can generate either a master or a user token, up to you. You can do so from the ACP.
-
@mahidul-moon good question, it is because Postman automatically sends the browser cookie if it detects one
It's actually really annoying how postman does that...
Copyright © 2024 NodeBB | Contributors