# WebView CORS problem

**URL:** <https://community.amazondeveloper.com/t/webview-cors-problem/27854>\
**Category:** Bug Reports\
**Created:** [March 10, 2026, 7:22am UTC](https://community.amazondeveloper.com/t/webview-cors-problem/27854 "2026-03-10T07:22:02Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![MEKmedia\_Developer](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@MEKmedia\_Developer](https://community.amazondeveloper.com/u/MEKmedia_Developer)\
**Post date:** [March 10, 2026, 7:22am UTC](https://community.amazondeveloper.com/t/webview-cors-problem/27854/1 "2026-03-10T07:22:02Z")

</div>

Our problem what we have is CORS problem on videos. We can not play video from some address and from some address we can play them. Concrete in Welt app now. We plane to create for this app our first VegaOS version. but the big problem is that we can not play most of the content videos.

For testing: Live stream video on home is geoblocked only only to Germany.  
For playing videos we are using Video.js player.

hls examples of content videos which does not work:  
[https://vod-stream.welt.personalstream.tv/videos/zlxwari3wsdm/rendition/8672347d1cb6afb3c656da70d6871d5a-fyzw5o4lopq3/master.m3u8](https://vod-stream.welt.personalstream.tv/videos/zlxwari3wsdm/rendition/8672347d1cb6afb3c656da70d6871d5a-fyzw5o4lopq3/master.m3u8)

We are testing it on FireTV stick and VegaOS 0.22.

Our App.tsx:

import { WebView } from “@amazon-devices/webview”;  
import \* as React from “react”;  
import { useRef } from “react”;  
import { View, StyleSheet } from “react-native”;

export const App = () =\> {  
const webRef = useRef(null);  
return (  
  
\<WebView  
// headers: {},  
ref={webRef}  
hasTVPreferredFocus={true}  
allowSystemKeyEvents={true}  
domStorageEnabled={true}  
mediaPlaybackRequiresUserAction = {false}  
thirdPartyCookiesEnabled={false}  
allowsDefaultMediaControl={true}  
mixedContentMode=“always”  
source={{  
// Replace with your URL.  
uri: “[http://pk0137-welt.tvapp-server.de/Client\_V56/index\_1080p.debug.Firefox.html](http://pk0137-welt.tvapp-server.de/Client_V56/index_1080p.debug.Firefox.html)”,  
}}  
javaScriptEnabled={true}  
onLoadStart={(event) =\> {  
console.log("onLoadStart url: ", event.nativeEvent.url)  
}}  
onLoad={(event) =\> {  
console.log("onLoad url: ", event.nativeEvent.url)  
}}  
onError={(event) =\> {  
console.log("onError url: ", event.nativeEvent.url)  
}}  
/\>  
  
);  
};

// Styles for layout, which are necessary for proper focus behavior  
const styles = StyleSheet.create({  
container: { flex: 1 }  
});

Error log is attached.

 ![Welt_CORS](https://d3mq594dkmpl37.cloudfront.net/original/2X/e/ebf469422cf47da97781d7f15f82fecb03d04020.png)

I can not write here more links with examples, I will try to add them in next post.

---

<div class="post-metadata">

**Author:** ![MEKmedia\_Developer](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@MEKmedia\_Developer](https://community.amazondeveloper.com/u/MEKmedia_Developer)\
**Post date:** [March 10, 2026, 7:22am UTC](https://community.amazondeveloper.com/t/webview-cors-problem/27854/3 "2026-03-10T07:22:44Z")

</div>

Livestream which works:  
[https://welt.personalstream.tv:443/v1/smarttv/master.m3u8?ads.tcf=](https://welt.personalstream.tv:443/v1/smarttv/master.m3u8?ads.tcf=)

with tcf:

[https://welt.personalstream.tv/v1/smarttv/master.m3u8?ads.tcf=CQfdcEAQfdcEAFZABCENCRFgAP\_AAEAAAATIIzQFgAKgAggBOAFAALQAZABGACYAE4AMQAgABGADKAIsAR0AkoBdQF5gL2AYoAywBrgEZgLzgDAAggBOAFAAMgAmAElAXmAQEgBAAVAGUFAAwAnACgdALAAqACAAGQATAAxADKAIsAR0AkoC8wGWEIAIAYiUAMAJgAYgF5kgAIDLCkAsACoAIAAZABMADEAMoAiwBHQCSgLzAZYUAAgF1AAA.YAAAAAAAAAAA](https://welt.personalstream.tv/v1/smarttv/master.m3u8?ads.tcf=CQfdcEAQfdcEAFZABCENCRFgAP_AAEAAAATIIzQFgAKgAggBOAFAALQAZABGACYAE4AMQAgABGADKAIsAR0AkoBdQF5gL2AYoAywBrgEZgLzgDAAggBOAFAAMgAmAElAXmAQEgBAAVAGUFAAwAnACgdALAAqACAAGQATAAxADKAIsAR0AkoC8wGWEIAIAYiUAMAJgAYgF5kgAIDLCkAsACoAIAAZABMADEAMoAiwBHQCSgLzAZYUAAgF1AAA.YAAAAAAAAAAA)

---

<div class="post-metadata">

**Author:** ![MEKmedia\_Developer](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@MEKmedia\_Developer](https://community.amazondeveloper.com/u/MEKmedia_Developer)\
**Post date:** [March 10, 2026, 7:23am UTC](https://community.amazondeveloper.com/t/webview-cors-problem/27854/4 "2026-03-10T07:23:20Z")

</div>

mp4 file which works:

[https://weltn24sfthumb-a.akamaihd.net/2021/03/29/20210329-111549\_PG000CX5/20210329-111549\_PG000CX5\_2000.mp4](https://weltn24sfthumb-a.akamaihd.net/2021/03/29/20210329-111549_PG000CX5/20210329-111549_PG000CX5_2000.mp4)

---

<div class="post-metadata">

**Author:** ![MEKmedia\_Developer](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@MEKmedia\_Developer](https://community.amazondeveloper.com/u/MEKmedia_Developer)\
**Post date:** [March 10, 2026, 7:23am UTC](https://community.amazondeveloper.com/t/webview-cors-problem/27854/5 "2026-03-10T07:23:52Z")

</div>

hls examples o content videos which does not work:

[https://vod-stream.welt.personalstream.tv/videos/zlxwari3wsdm/rendition/8672347d1cb6afb3c656da70d6871d5a-fyzw5o4lopq3/master.m3u8](https://vod-stream.welt.personalstream.tv/videos/zlxwari3wsdm/rendition/8672347d1cb6afb3c656da70d6871d5a-fyzw5o4lopq3/master.m3u8)

[https://vod-stream.welt.personalstream.tv/videos/33on74wdc7gw/rendition/6aefca71f14062227caf718c42786da1-l84btst9q7llpcr1-pgm-10-00-onl-off-und-studiotalk-kather-1129/master.m3u8](https://vod-stream.welt.personalstream.tv/videos/33on74wdc7gw/rendition/6aefca71f14062227caf718c42786da1-l84btst9q7llpcr1-pgm-10-00-onl-off-und-studiotalk-kather-1129/master.m3u8)

---

<div class="post-metadata">

**Author:** ![MEKmedia\_Developer](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@MEKmedia\_Developer](https://community.amazondeveloper.com/u/MEKmedia_Developer)\
**Post date:** [March 10, 2026, 9:26am UTC](https://community.amazondeveloper.com/t/webview-cors-problem/27854/6 "2026-03-10T09:26:38Z")

</div>

My manifest.toml:  
schema-version = 1

[package]  
title = “Basic UI React Native Application for project vegawebapp”  
version = “0.1.0”  
id = “com.mekmedia.vegawebapp”

[components]  
[[components.interactive]]  
id = “com.mekmedia.vegawebapp.main”  
runtime-module = “/com.amazon.kepler.keplerscript.runtime.loader\_2@IKeplerScript\_2\_0”  
launch-type = “singleton”  
categories = [“com.amazon.category.main”]

[wants]

# Web renderer service for rendering web content

[[wants.service]]  
id = “com.amazon.webview.renderer\_service”

# If Web App needs keyboard support

[[wants.service]]  
id = “com.amazon.inputmethod.service”

# If Web App needs video playback

[[wants.service]]  
id = “com.amazon.media.server”

# Required for emitting metrics from video playback

[[wants.service]]  
id = “com.amazon.mediametrics.service”

# Required for video playback on stable APIs

[[wants.service]]  
id = “com.amazon.mediabuffer.service”  
[[wants.service]]  
id = “com.amazon.mediatransform.service”

# If Web App needs audio playback

[[wants.service]]  
id = “com.amazon.audio.stream”

# Required for audio management features to work in WebView, features like audio focus, volume control

[[wants.service]]  
id = “com.amazon.audio.control”

# To enable accessibility support for your app, we recommend you add the UCC service with the Service Registrar

[[wants.service]]  
id = “com.amazon.kepler.ucc.publisher”

# Uncomment below section to enable encrypted media playback (DRM content)

# [[wants.service]]

# id = “com.amazon.drm.key”

# [[wants.service]]

# id = “com.amazon.drm.crypto”

# [[needs.privilege]]

# id = “com.amazon.privilege.security.file-sharing”

# Enable Group-IPC to access media services

[[wants.service]]  
id = “com.amazon.gipc.uuid._"  
[offers]  
[[offers.service]]  
id = "com.amazon.gipc.uuid._”

# You may add other services as needed

---

<div class="post-metadata">

**Author:** ![amen](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@amen](https://community.amazondeveloper.com/u/amen)\
**Post date:** [March 10, 2026, 6:49pm UTC](https://community.amazondeveloper.com/t/webview-cors-problem/27854/7 "2026-03-10T18:49:35Z")

</div>

Hi @MEKmedia_Developer,

Welcome to Amazon Developer Community!!

Thank you for the detailed bug report on the WebView CORS issue with video playback on VegaOS.

Our team is investigating this issue and will provide an update as soon as we have more information.

In the meantime, could you please share the full error logs? This will help us investigate the issue more effectively.

Thanks for helping us improve the Vega platform.

Warm regards,  
Aishwarya

---

<div class="post-metadata">

**Author:** ![MEKmedia\_Developer](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@MEKmedia\_Developer](https://community.amazondeveloper.com/u/MEKmedia_Developer)\
**Post date:** [March 12, 2026, 1:46pm UTC](https://community.amazondeveloper.com/t/webview-cors-problem/27854/8 "2026-03-12T13:46:19Z")

</div>

Hi Aishwarya,

thanks for fast reply. I can send you everything what you need , but what do you imagine like full error logs please?

Best regards  
Josef

---

<div class="post-metadata">

**Author:** ![amen](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@amen](https://community.amazondeveloper.com/u/amen)\
**Post date:** [March 17, 2026, 9:12pm UTC](https://community.amazondeveloper.com/t/webview-cors-problem/27854/9 "2026-03-17T21:12:26Z")

</div>

Hi @MEKmedia_Developer,

To help us investigate the CORS issue further, could you please share:

1. **Minimal reproducible code** — A simplified version of your app that demonstrates the issue (just the essential code needed to reproduce the problem)

2. **Full error logs** — Complete console output showing the CORS errors, including any network request failures or WebView errors

You can capture logs using the instructions here:

- [Use Loggingctl to Manage System Logs | Vega CLI Tools](https://developer.amazon.com/docs/vega/0.22/loggingctl.html)
- [Manage Files, Crash Reports, and Logs | Design and Develop Vega Apps](https://developer.amazon.com/docs/vega/0.22/logs.html)

This will help our team identify the root cause more quickly.

Thanks for your patience!

Best regards,  
Aishwarya

---

<div class="post-metadata">

**Author:** ![MEKmedia\_Developer](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@MEKmedia\_Developer](https://community.amazondeveloper.com/u/MEKmedia_Developer)\
**Post date:** [March 19, 2026, 2:27pm UTC](https://community.amazondeveloper.com/t/webview-cors-problem/27854/10 "2026-03-19T14:27:20Z")

</div>

Hi @amen ,

I prepared reduced app version which only get data and try to play video. App is on this link:

> **[WELT - 3 Step Video Chain Test](https://welt-pk0137-dev.tvapp-server.de/Client/VegaTest/vegaIndex.html)**

How I see the error:  
Stream is from different domain then the app → in stream responce header have to be property "Access-Control-Allow-Origin: \* ". It is missing and app runs in WebView → CORS Error.

Stream runs on customer server and we can not change it.  
In normal WebView in React nativ exist possibility to disable it by setting “originWhitelist={[‘\*’]}”, but this does not exist in KeplerWebView.  
Is there any other possibility to set trusted domains?

Other solution is to use native player and do not play videos in WebView, because native player does not take care about CORS.

I checked log files by documentation, but htere was lot of files and nothing about CORS or Network error. I copied here header from one file, to help you understand which device i have.

BeginIndex: 461036827  
BootId: 2ce5a8e8395b408988996e779ba71566  
BuildVariant: user  
DeviceGroup: Public  
EndIndex: 640589943  
FileIndex: 3272  
LastModified: 1773900884  
OsBuildNumber: 1401010009820  
Source: acs\_main.log.gz  
SystemVersion: 4.0.227617.0(3072cab629675a74)/98N:user/release-keys  
UpTimems: 642000

Best regards  
Josef

---

<div class="post-metadata">

**Author:** ![MEKmedia\_Developer](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@MEKmedia\_Developer](https://community.amazondeveloper.com/u/MEKmedia_Developer)\
**Post date:** [April 9, 2026, 1:53pm UTC](https://community.amazondeveloper.com/t/webview-cors-problem/27854/12 "2026-04-09T13:53:21Z")

</div>

Hi @amen,

do you have something new for us? Thanks a lot

---

<div class="post-metadata">

**Author:** ![amen](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@amen](https://community.amazondeveloper.com/u/amen)\
**Post date:** [April 29, 2026, 9:55pm UTC](https://community.amazondeveloper.com/t/webview-cors-problem/27854/13 "2026-04-29T21:55:53Z")

</div>

Hi @MEKmedia_Developer ,

Thank you for your patience.

We’ve tested the stream URL on our end and were unable to reproduce the CORS issue - video playback worked as expected in our environment.

Could you let us know:

1. Which device and OS build are you currently testing on?

2. Are you still seeing the issue with the latest build?

This will help us narrow down whether this is device/build-specific.

Thanks,  
Aishwarya

---

<div class="post-metadata">

**Author:** ![MEKmedia\_Developer](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@MEKmedia\_Developer](https://community.amazondeveloper.com/u/MEKmedia_Developer)\
**Post date:** [May 6, 2026, 3:13pm UTC](https://community.amazondeveloper.com/t/webview-cors-problem/27854/14 "2026-05-06T15:13:40Z")

</div>

Hi @Aishwarya,  
what your environment means? For test you can run this link in WebView: [WELT - 2 Step Video Chain Test](http://welt-pk0137-dev.tvapp-server.de/Client/VegaTest/vegaIndex.html) We have SDK 0.22.6759 and OS 1.1 (14010110010220). And we have still CORS Issue.

---

<div class="post-metadata">

**Author:** ![amen](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@amen](https://community.amazondeveloper.com/u/amen)\
**Post date:** [July 17, 2026, 9:37pm UTC](https://community.amazondeveloper.com/t/webview-cors-problem/27854/15 "2026-07-17T21:37:09Z")

</div>

Hi @MEKmedia_Developer,

Thank you for your patience.

Could you please let us know if you are still blocked on this issue? If yes, which videos are still not working?

Thanks,  
Aishwarya

---

<div class="post-metadata">

**Author:** ![amen](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@amen](https://community.amazondeveloper.com/u/amen)\
**Post date:** [August 10, 2026, 6:08pm UTC](https://community.amazondeveloper.com/t/webview-cors-problem/27854/16 "2026-08-10T18:08:33Z")

</div>

Hi @MEKmedia_Developer,

Just following up - we’ve confirmed that native HLS playback in WebView is fixed in the latest build. Both your VOD URLs now work. Could you please update and let us know if this resolves the issue on your end?

Thanks,  
Aishwarya

---

<div class="post-metadata">

**Author:** ![MEKmedia\_Developer](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@MEKmedia\_Developer](https://community.amazondeveloper.com/u/MEKmedia_Developer)\
**Post date:** [August 17, 2026, 2:15pm UTC](https://community.amazondeveloper.com/t/webview-cors-problem/27854/17 "2026-08-17T14:15:17Z")

</div>

Hi, videos plays, but only of we remove CORS from server. If on server is still CORS it does not play.

---

<div class="post-metadata">

**Author:** ![amen](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@amen](https://community.amazondeveloper.com/u/amen)\
**Post date:** [August 17, 2026, 6:43pm UTC](https://community.amazondeveloper.com/t/webview-cors-problem/27854/18 "2026-08-17T18:43:54Z")

</div>

Hi @MEKmedia_Developer,

Thank you for the update. To clarify - could you confirm which OS build/release you are currently testing on?

Also, when you say “remove CORS from server” - do you mean the server stops sending Access-Control-Allow-Origin headers, or that you’re disabling CORS enforcement entirely? Could you share the exact response headers from the stream server when CORS is enabled?

This will help us determine if this is a remaining WebView CORS handling issue separate from the original HLS playback fix.

Thanks,  
Aishwarya

---

<div class="post-metadata">

**Author:** ![amen](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@amen](https://community.amazondeveloper.com/u/amen)\
**Post date:** [October 6, 2026, 2:29am UTC](https://community.amazondeveloper.com/t/webview-cors-problem/27854/19 "2026-10-06T02:29:23Z")

</div>

Hi @MEKmedia_Developer,

Following up on my previous message - are you still blocked on this?

To move the investigation forward, it would really help to get the details I asked about earlier:

1. OS build/release you’re currently testing on.
2. What you mean by “remove CORS from server” - does the server stop sending the Access-Control-Allow-Origin header, or are you disabling CORS enforcement some other way?
3. The exact response headers returned by the stream server when CORS is enabled (i.e., the case that fails).

With the failing response headers and your OS build, we can confirm whether this is a remaining WebView CORS-handling issue separate from the HLS playback fix, and route it accordingly.

Thanks again for your patience!

Best regards,  
Aishwarya

---

<div class="post-metadata">

**Author:** ![amen](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@amen](https://community.amazondeveloper.com/u/amen)\
**Post date:** [October 27, 2026, 6:39am UTC](https://community.amazondeveloper.com/t/webview-cors-problem/27854/20 "2026-10-27T06:39:31Z")

</div>

Hi @MEKmedia_Developer,

Since we haven’t heard back, we’ll close this thread for now due to inactivity.

If you’re still seeing the CORS issue, please reply here with your current OS build, clarify what “remove CORS from server” means in your setup, and share the exact response headers from the stream server in the failing case. We’ll be happy to continue investigating.

Thanks for helping us improve the Vega platform.

Regards,  
Aishwarya

---

<div class="post-metadata">

**Author:** ![system](https://dhm3gbtzu79o6.cloudfront.net/user_avatar/community.amazondeveloper.com/system/32/5065_2.png) [@system](https://community.amazondeveloper.com/u/system)\
**Post date:** [November 10, 2026, 6:40am UTC](https://community.amazondeveloper.com/t/webview-cors-problem/27854/21 "2026-11-10T06:40:28Z")

</div>

Closed on November 10, 2026, 6:40am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
