Skip to content

Commit

Permalink
fix request headers with missing cookies
Browse files Browse the repository at this point in the history
Signed-off-by: Pranav Singh <pranavsingh02@hotmail.com>
  • Loading branch information
theBeginner86 committed Nov 30, 2024
1 parent 27d753f commit f3b6097
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/kanvas-snapshot/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ func CreateMesheryDesign(uri, name, email string) (string, error) {
}

// Set headers and log them
req.Header.Set("Cookie", ProviderToken)
req.Header.Set("Cookie", fmt.Sprintf("token=%s;meshery-provider=Meshery", ProviderToken))
req.Header.Set("Origin", MesheryAPIBaseURL)
req.Header.Set("Host", MesheryAPIBaseURL)
req.Header.Set("Content-Type", "text/plain;charset=UTF-8")
Expand Down Expand Up @@ -231,7 +231,7 @@ func GenerateSnapshot(designID, _, email, assetLocation string) error {
return err
}

req.Header.Set("Cookie", ProviderToken)
req.Header.Set("Cookie", fmt.Sprintf("provider_token=%s", ProviderToken))
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Referer", fmt.Sprintf("%s/dashboard", MesheryCloudAPIBaseURL))

Expand Down

0 comments on commit f3b6097

Please sign in to comment.