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

The 'credentials' field on 'RequestInitializerDict' is not implemented #1112

Closed
Kaperstone opened this issue Jan 8, 2023 · 4 comments
Closed

Comments

@Kaperstone
Copy link

Kaperstone commented Jan 8, 2023

I am getting the error

The 'credentials' field on 'RequestInitializerDict' is not implemented

After deploying to Cloudflare-workers with ably-webworker.min, basically, if to remove credentials then the error disappears and the worker is emitting message to Ably.

@sync-by-unito
Copy link

sync-by-unito bot commented Jan 8, 2023

➤ Automation for Jira commented:

The link to the corresponding Jira issue is https://ably.atlassian.net/browse/SDK-3219

@Kaperstone
Copy link
Author

Cloudflare workers don't and won't support credentials headers.

So its either choosing Ably or Cloudflare Workers.

@owenpearson
Copy link
Member

Hey @Kaperstone, thanks for reporting this! I think we should be able to update the library to not send credentials in a cloudflare workers context, so I'll reopen this issue for now and hopefully we will have it fixed soon 🙂

@owenpearson
Copy link
Member

Hey @Kaperstone, we've updated the library in 1.2.37 to not send the credentials field when using the webworker version. I hope this helps and please let us know if you have any further issues :)

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

No branches or pull requests

2 participants