Set request options via event in module #1369
andrewhawkes
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I need to set Authorization headers for a particular feed.
I understand you can set these headers within
requestOptions
in the feed-me.php config file.However, this file gets loaded on every request and I need to request tokens etc. So I don't want this to happen on every request.
Ideally, it would be good if I could set these headers using an event such as
beforeFetchFeed
but it doesn't look like you can modify the request.Any help would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions