#How to set headers while triggering relationship calls

1 messages · Page 1 of 1 (latest)

misty skiff
#

Hi, I need to set a header for a relationship call. We are already constructing common headers in the adapter file. Is there any option to send request-specific headers from where the relationship request is triggered?

willow rover
#

@orchid salmon may know!

orchid salmon
#

for old EmberData iirc foo.hasMany('bars').load({ adapterOptions: { ... } }) will pass the options through to the adapter, may have some nuance though

#

for new EmberData you'd just issue a request via the request-manager instead