flutter-plugins icon indicating copy to clipboard operation
flutter-plugins copied to clipboard

[desktop_webview_window] How to add header parameters

Open j0chn1 opened this issue 3 years ago • 4 comments

Hi, I need to add header parameters (OCI-REQUEST = TRUE). How can I achieve this? Thank you!

j0chn1 avatar Mar 29 '22 19:03 j0chn1

Sorry, I can't understand your question. Which function of which plugin do you want to ask?

boyan01 avatar Mar 30 '22 09:03 boyan01

I am sorry. I added [desktop_webview_window] to the title. In flutter inAppWebView (plugin for mobile web views) it is possible to add header parameters. I need this also to pass mentioned parameter (OCI-REQUEST = TRUE). This is necessary for the nextcloud login flow which I'd like to proceed with your plugin.

j0chn1 avatar Mar 30 '22 10:03 j0chn1

It seems impossible now.

At this moment, you can only use query parameter... And there is now way to intercept the http header.

https://github.com/MixinNetwork/flutter-plugins/blob/4b67bcc3a0498953e3e0b637d9b875f8a8592316/packages/desktop_webview_window/lib/src/webview.dart#L36

boyan01 avatar Mar 30 '22 12:03 boyan01

Any kind of news about this feature?

MuhammedKpln avatar May 22 '23 22:05 MuhammedKpln