Skip to content

bug: Strict Secure Cookie policy does not allow setting a secure cookie for http://xxxxxxx.com/ for apps targeting >= R #6478

@wasimbakali

Description

@wasimbakali

Bug Report

Getting error while using third party API when

Strict Secure Cookie policy does not allow setting a secure cookie for http://linkedin.com/ for apps targeting >= R. Please either use the 'https:' scheme for this URL or omit the 'Secure' directive in the cookie value.

Capacitor Version

Latest Dependencies:

  @capacitor/cli: 4.7.3
  @capacitor/core: 4.7.3
  @capacitor/android: 4.7.3
  @capacitor/ios: 4.7.3

Installed Dependencies:

  @capacitor/cli: 4.7.3
  @capacitor/core: 4.7.3
  @capacitor/android: 4.7.3
  @capacitor/ios: 4.7.3

PASTE OUTPUT HERE


### Platform(s)
Android
IOS (Dont have checked)



### Current Behavior
When we run ionic cap build android it worked but i am unable to use third party APIs in emulator and actual device.

### Expected Behavior
It should work in android 11 and above.



### Code Reproduction

use third party API example linkedin auth API with  Target SDK  32
Run app in emulator or device


### Other Technical Details
<!--
Please provide the following information with your request and any other relevant technical details (versions of IDEs, local environment info, plugin information or links, etc).
-->

`npm --version` output: 8.15.0

`node --version` output: v16.17.0

`pod --version` output (iOS issues only):

### Additional Context
<!--
List any other information that is relevant to your issue. Stack traces, related issues, suggestions on how to fix, Stack Overflow links, forum links, etc.
-->


Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions