#1590 new
Victor

Ability to remove headers in Ajax.Request#setRequestHeaders for CORS

Reported by Victor | December 21st, 2012 @ 07:13 AM

In order to have possibility to make simple CORS request without preflight (https://developer.mozilla.org/en-US/docs/HTTP/Access_control_CORS#P...) we need an ability to remove X-Requested-With and X-Prototype-Version headers added to request in Ajax.Request#setRequestHeaders(), e.g.

new Ajax.Request("url", {
  method: "get",
  requestHeaders: {"X-Requested-With": null, "X-Prototype-Version": null}
});

or

new Ajax.Request("url", {
  CORS: true
});

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

The Prototype JavaScript library.

Shared Ticket Bins

People watching this ticket

Pages