victorbonnet / flutter_web_browser

Plugin for flutter to open web page with Chrome Custom Tabs and SFSafariViewController
MIT License
62 stars 40 forks source link

Passing Header Parameters #4

Closed nevi-me closed 1 year ago

nevi-me commented 6 years ago

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);
fvisticot commented 5 years ago

any progress regarding this feature ?

nevi-me commented 5 years ago

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

ened commented 5 years ago

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.

nevi-me commented 5 years ago

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

ened commented 5 years ago

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