-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
AWS sdk does'nt do xhr request in service workers. #1902
Comments
Hi @sk16 |
@AllanFly120 Can you tell me how to build aws-sdk for node/browser/service worker env. I have created a file service_worker.js under path lib/http , but not able to build for service worker env. |
sk16, your code works with cloudflare workers. I overwrite xhr.js AWS.XHRClient part with your code, but I had to remove credentials property in request object. before this, it won't work with cloudflare workers because of xmlhttp |
@zzzxtreme , you can use aws appSync : https://aws.amazon.com/appsync/ , if it fulfill its requirements, it also support service workers and similar env. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread. |
Hi,
AWS SDK uses XML HttpRequest , which is not supported in service worker env.
Modified the code of aws-sdk.js, replaced XmlHttpRequest api with fetch api . Here is modified one :
The text was updated successfully, but these errors were encountered: