question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

v1.9.528 doesn't include credentials on chrome

See original GitHub issue

We had this code to get pdf through authenticated url PDFJS.getDocument(url) that breaks with version 1.9.528 on Chrome because it doesn’t include CSRF-TOKEN in the request. However, it works on firefox and safari. Now I have to fix it by enforce withCredentials: true. Does new version set the default of withCredentials to false?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
yurydelendikcommented, Sep 8, 2017

Okay, from reading https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/withCredentials, I have impression that to be compatible with XHR we need to use ‘same-origin’ instead of ‘omit’ there. I think it is safe in our context.

0reactions
yurydelendikcommented, Sep 8, 2017

same-origin might limit the pdf on the same site, i.e not allowing authenticated access to pdf’s on another site

That’s how XHR worked before we introduced fetch().

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix issues with saved payment info & passwords - Android
You can save your contact, payment, and sign-in info to Chrome. If something doesn't work when you let Chrome remember your info, try...
Read more >
Troubleshoot authentication & authorization issues
This page describes some common issues that you might encounter involving authentication and authorization. This app isn't verified.
Read more >
Detect password leaks and breached credentials
Check for breached and/or leaked credentials. To check if a set of credentials has been compromised, query the Password Checkup database during assessments...
Read more >
Chrome Browser Password Recovery for Windows - NirSoft
Be aware that in order to recover passwords created while you signed in with Microsoft account, you have to provide the random DPAPI...
Read more >
How to clear basic authentication details in chrome
It seems chrome will always show you the login prompt if you include a username in the url e.g.. http://me@example.com. This is not...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found