Hi @zemlanin,
Welcome to Amazon Developer Community!!
Thank you for your question about CORS and local file loading in WebView.
This is a known limitation with file:// protocol in WebView - the browser treats the origin as null, which causes CORS blocking.
Could you try out these workarounds and let us know if they work?
-
Message Bridge approach - Make HTTP requests from your React Native layer and pass data to the WebView using the message bridge pattern
-
Local HTTP server - Serve your HTML through http://localhost instead of file://
-
Bundle resources locally - For fonts and static assets, include them in /pkg/assets/ with relative paths
Our team is looking into this limitation and will provide an update as soon as we have more information.
Getting Started:
Thanks for helping us improve the Vega platform.
Warm regards,
Aishwarya