flutter_web_browser icon indicating copy to clipboard operation
flutter_web_browser copied to clipboard

Passing Header Parameters

Open nevi-me opened this issue 7 years ago • 5 comments
trafficstars

Hey there 😄

Chrome allows passing custom headers as a Bundle, I don't know about the impl. detail for iOS.

Is it possible for the plugin to support custom headers? I have used them on Chrome before, so I can try submit a PR. I'd need help on iOS though.

Bundle headers = new Bundle();
headers.putString("header1", "value1");
headers.putString("header2", "value2");
customTabsIntent.intent.putExtra(Browser.EXTRA_HEADERS, headers);

nevi-me avatar Mar 28 '18 03:03 nevi-me

any progress regarding this feature ?

fvisticot avatar Nov 19 '18 16:11 fvisticot

I got it working on Android, but don't have iOS experience

nevi-me avatar Nov 19 '18 18:11 nevi-me

There is no suitable API for iOS. You can only add URL query parameters. As the URL is encrypted in a SSL request, you can pass the values as there.

Question is how the API should be designed for this, it's clearly an Android-only feature.

ened avatar Feb 23 '19 05:02 ened

As the URL is encrypted in a SSL request, you can pass the values as there.

Wouldn't a third-party still be able to view those parameters? I don't think encrypting the payload protects query parameters. Perhaps this would be an Android-only feature then

nevi-me avatar Feb 23 '19 06:02 nevi-me

@nevi-me https://blog.httpwatch.com/2009/02/20/how-secure-are-query-strings-over-https The URL is encrypted.

ened avatar Feb 23 '19 07:02 ened