当我从JavaScript代码中点击URL时无法获得响应

时间:2018-01-18 19:13:32

标签: javascript json url

我有一个奇怪的问题。当我尝试从设置了“拦截器”的POSTMAN Rest Client命中时,有一个URL给出响应。但是当我尝试从JavaScript代码中搜索相同的URL时,它会产生以下错误,响应代码为403:

体:

{
  errorCode ":102,"
  errorMessage ":" (102) Invalid session.You must be in a session to access this page.If you were logged in , your session may have timed out.Please log in again.
}

接头:

{
  set - cookie: ["JSESSIONID=2D1EA3DA7EA57D558AA0569091BA06C3; Path=/companyName/; HttpOnly;Secure"]
}

非常感谢任何帮助。

提前致谢。

0 个答案:

没有答案