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

Cannot set Android cookies #3392

Open
one-god opened this issue Apr 10, 2024 · 0 comments
Open

Cannot set Android cookies #3392

one-god opened this issue Apr 10, 2024 · 0 comments

Comments

@one-god
Copy link

one-god commented Apr 10, 2024

Bug description:

To Reproduce:

Expected behavior:

Screenshots/Videos:

Environment:

  • OS:
  • OS version:
  • react-native version:0.72.11
  • react-native-webview version:13.8.1
    <WebView
    ref={webViewRef}
    androidLayerType="hardware"
    mixedContentMode="always"
    cacheEnabled={true}
    useWebKit={true}
    domStorageEnabled={true}
    sharedCookiesEnabled={true}
    thirdPartyCookiesEnabled={true}
    javaScriptEnabled={true}
    injectJavaScript={(function() { document.cookie = "Authorization=${Authorization};expires=${cookieExpires.toUTCString()};path=/"; }
    onMessage={handleMessage}
    source={{
    uri: ${link},
    headers: {
    Cookie:Authorization=${Authorization};expires=${cookieExpires.toUTCString()};path=/,
    }, }}
    />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant