|
@@ -42,6 +42,7 @@ func forwardRequestWithJWT(c *gin.Context, targetURL string) (interface{}, error
|
|
|
|
|
|
req.Header.Set("Authorization", jwtToken)
|
|
req.Header.Set("Authorization", jwtToken)
|
|
|
|
|
|
|
|
+ fmt.Println(c.Copy().GetHeader("Content-Type"))
|
|
// Set content type
|
|
// Set content type
|
|
if c.Request.Method == "POST" {
|
|
if c.Request.Method == "POST" {
|
|
if strings.Contains(targetURL, "/api/set-password") {
|
|
if strings.Contains(targetURL, "/api/set-password") {
|