-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Add CORS headers to CDN serving up SDK and widgets #5295
Comments
@fayazara Please take help from @sojan-official for testing the changes. I believe we can remove the CORS |
I might be misunderstanding, but I think this might be less removing the CORS |
When we serve the widget directly from the Chatwoot Application, we add the But in our cloud version, where the assets are delivered through CloudFront, we are missing these. let have the settings updates in cloudfront |
https://opensource.huntersofbook.com/guide/nuxt-packages/chatwoot iam support partytown settings, but dont working. I hope you fix this soon. |
We too are having the same issue and setting the cdn host doesn't resolve my {"error":"web widget does not exist"} anyone have any more suggestions other than hosting this by downloading the JS every deploy? Thank you! |
Is your enhancement request related to a problem? Please describe.
Partytown is a mechanism for loading 3rd-party scripts in non-blocking way in a web worker. It has the capacity to dramatically improve user experience.
Describe the solution you'd like
The key thing that is required for chatwoot to work out-of-the-box with partytown is for all assets needed by the SDK (including the SDK itself) to be served up with CORS headers (ideally allowing all hosts) so that the assets can be fetched by a script rather than from the browser itself.
Describe alternatives you've considered
The only alternative to use Partytown with chatwoot would be to set up a proxy in between, but this seems to have a few issues that I can go into if adding CORS headers is not feasible.
The text was updated successfully, but these errors were encountered: