Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fetch Calls Removes Authorization Header #1822

Closed
mparker11 opened this issue Nov 9, 2018 · 3 comments
Closed

Fetch Calls Removes Authorization Header #1822

mparker11 opened this issue Nov 9, 2018 · 3 comments

Comments

@mparker11
Copy link

Hi guys. I believe this issue is back, or hasn't been fully resolved. I am using TestCafe and I have an API call that errors with 401 (Unauthorized) and it's due to the Authorization header is being removed from my Fetch calls. jQuery works fine, leaving all headers in tact.

Current Behavior

  • TestCafe logs in (jQuery ajax -- works)
  • TestCafe get user personal info (jQuery ajax -- works)
  • TestCafe gets user projects (Fetch call -- breaks, 401, no authorization header)

Expected Behavior

  • TestCafe logs in (jQuery ajax -- works)
  • TestCafe get user personal info (jQuery ajax -- works)
  • TestCafe gets user projects (Fetch call -- works)

TestCafe version: 0.23.1
Node version: 8.11.4
Browser: Chrome and Firefox (haven't tested Edge and IE yet)
OS: WIndows 10

@mparker11 mparker11 changed the title Fetch Calls Removing Authorization Header Fetch Calls Removes Authorization Header Nov 9, 2018
@LavrovArtem
Copy link
Contributor

I reproduced this problem and will fix it in the current sprint.

@kirovboris kirovboris transferred this issue from DevExpress/testcafe Nov 9, 2018
@kirovboris kirovboris reopened this Nov 9, 2018
@LavrovArtem LavrovArtem added this to the Sprint #21 milestone Nov 9, 2018
@LavrovArtem
Copy link
Contributor

Could you please provide me information about settings of your fetch request? Headers, mode, credentials, etc.

@miherlosev miherlosev modified the milestones: Sprint #21, Planned Nov 14, 2018
testcafe-build-bot pushed a commit to testcafe-build-bot/testcafe-hammerhead that referenced this issue Nov 14, 2018
DevExpress#1822 in testcafe) (DevExpress#1789)

* event should not work on iframe content (closes DevExpress#1822)

* fix test

* fix safari tests

* focus should work while click should not

* changes

* improve
@no-response
Copy link

no-response bot commented Feb 19, 2019

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

@no-response no-response bot closed this as completed Feb 19, 2019
AndreyBelym pushed a commit to AndreyBelym/testcafe-hammerhead that referenced this issue Feb 28, 2019
DevExpress#1822 in testcafe) (DevExpress#1789)

* event should not work on iframe content (closes DevExpress#1822)

* fix test

* fix safari tests

* focus should work while click should not

* changes

* improve
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants