jquery.cookie.js – Error 406 Not Acceptable


When your website attempts to load the jQuery Cookie plugin (jquery.cookie.js), you get the HTTP Error 406 – Not Acceptable.

If you try and load the file direct in your browser, you may see the following error:

“Not Acceptable

An appropriate representation of the requested resource /jquery.cookie.js could not be found on this server.”


Your web server is running ModSecurity (also known as mod_security). By default, this blocks filenames that contain the text “.cookie”.


Rename the jquery.cookie.js file to something else like jquery_cookie.js and then update any files which call it to reflect the new filename.

Leave a comment

Your email address will not be published. Required fields are marked *