Pixel Posted July 29, 2020 Report 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
Dr. McKay Posted July 29, 2020 Report Posted July 29, 2020 What's the URL? Cookies are only sent for the appropriate domains. Quote
Pixel Posted July 30, 2020 Author Report Posted July 30, 2020 The domain is https://api.rollbit.com/auth in this case Quote
Dr. McKay Posted July 31, 2020 Report Posted July 31, 2020 There should be no need to send Steam cookies to a non-Steam domain. Quote
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.