Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Re : Individual Request Headers for can.Model

$
0
0
You can overwrite model's findAll/update/create/etc with functions that do whatever you want. 

Sent from my iPhone

On Mar 12, 2015, at 3:36 AM, JavaScriptMVC Forum <noreply@zohodiscussions.com> wrote:

JavaScriptMVC Forum

Hi Justin Meyer,

     vivoices has responded to "Individual Request Headers for can.Model"

When using

  1. $.ajaxSetup({
  2.     headers: {...}
  3. });
can.Model sends custom headers as expected, but the same headers for all requests in can.Model's request queue.

Is it possible to pass different headers with each request so that each request in can.Model's queue has it's own set of headers?


Now, you can also post your response to this by simply replying to this email! Your response will automatically appear on the forum.

You are receiving this email because you are watching the CanJS forum in javascriptmvc. If you do not wish to receive this e-mail notifications in the future, unwatch the CanJS forum here.This e-mail is generated from Zoho service. If you think this is SPAM, please do report to us and we will take immediate action on this. Report spam to abuse@zoho.com Contact us: Zoho, 4900 Hopyard Rd., Suite 310 ,Pleasanton, CA 94588, USA www.zoho.com


Viewing all articles
Browse latest Browse all 3491

Trending Articles