benkroeger / oniyi-http-client

Adding a plugin interface to "request" that allows modifications of request parameters and response data.
MIT License
0 stars 1 forks source link

Error: Cookie not in this host's domain. Cookie:i.example.com Request:www.example.com #12

Open mohilles opened 5 years ago

mohilles commented 5 years ago

Hello,

How can i ignore errors when setting Cookie? how can i fix issue?

i am using plugin oniyi-http-client/plugins/async-cookie-jar

Thank you

benkroeger commented 5 years ago

error messages like this are coming from tough-cookie. if you want a plugin that handles errors differently, you can create a copy of this plugin in your own code-base and handle errors accordingly. Make sure to mount your plugin instead of this one then.

Am 08.08.2019 um 09:55 schrieb Mohammed Hilles notifications@github.com:

Hello,

How can i ignore errors when setting Cookie? how can i fix issue?

i am using plugin oniyi-http-client/plugins/async-cookie-jar

Thank you

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

mohilles commented 5 years ago

is there anyway to pass options here ?

https://github.com/benkroeger/oniyi-http-client/blob/c59df1e105cc6f24aacaa9ac77ee3f94482db374/plugins/async-cookie-jar.js#L19

benkroeger commented 5 years ago

not in the current implementation. Pull-Request wellcome

Am 08.08.2019 um 10:15 schrieb Mohammed Hilles notifications@github.com:

is there anyway to pass options here ?

https://github.com/benkroeger/oniyi-http-client/blob/c59df1e105cc6f24aacaa9ac77ee3f94482db374/plugins/async-cookie-jar.js#L19

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.