Pixel Posted July 29, 2020 Report Share Posted July 29, 2020 webSession event is fired and client is logged in, but when making http GET requests the cookie headers are not included on production (but works locally). Is it possible to manually include those / force them to be included? Production Request Headers: "headers": { "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36", "accept-encoding": "gzip, deflate" } Local Request Headers: "headers": { "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36", "accept-encoding": "gzip, deflate", "referer": "https://api.rollbit.com/auth", "cookie": "Steam_Language=english; timezoneOffset=0,0; sessionid=123; steamLogin=123; steamLoginSecure=123" } client.on('webSession', (sessionID, cookies) => { console.log('Logged on'); community.setCookies(cookies); loadCookies() }) function loadCookies() { var options = { url: url, method: 'GET', followAllRedirects: true } community.httpRequest(options, (err, response, body) => {}) } Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted July 29, 2020 Report Share Posted July 29, 2020 What's the URL? Cookies are only sent for the appropriate domains. Quote Link to comment Share on other sites More sharing options...
Pixel Posted July 30, 2020 Author Report Share Posted July 30, 2020 The domain is https://api.rollbit.com/auth in this case Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted July 31, 2020 Report Share Posted July 31, 2020 There should be no need to send Steam cookies to a non-Steam domain. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.