Skip to content

Fix incorrect override code for cors headers in firefox#258

Closed
weikinhuang wants to merge 3 commits into
jquery:masterfrom
weikinhuang:ff-cors
Closed

Fix incorrect override code for cors headers in firefox#258
weikinhuang wants to merge 3 commits into
jquery:masterfrom
weikinhuang:ff-cors

Conversation

@weikinhuang
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread entries/jQuery.ajax.xml Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[ "Cache-Control", "Content-Language", "Content-Type", "Expires", "Last-Modified", "Pragma" ];

Comment thread entries/jQuery.ajax.xml Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the updates! Please change this line to avoid iterating over a plain array with $.fn.each(). Use $.each() instead:
$.each( xhrCorsHeaders, function( i, headerName ) {

@kswedberg kswedberg closed this in 08bc455 Mar 4, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants