开发者

Javascript file inclusion 406 error in CakePHP

开发者 https://www.devze.com 2023-01-14 11:55 出处:网络
I have several js files under webroot http://www.in-culture.info/app/webroot/js/ All the files are ok Eg http://www.in-culture.info/app/webroot/js/lightbox.js

I have several js files under webroot

http://www.in-culture.info/app/webroot/js/

All the files are ok

Eg http://www.in-culture.info/app/webroot/js/lightbox.js

Except this

http://www.in-culture.info/app/webroot/js/jque开发者_开发知识库ry.cookie.js

It's throwing 406 Not acceptable error.

Help please.


Check file permissions, also try changing filename.


If your server has mod_security enabled (which is usually present on cPanel hostings) the problem is that mod_security blocks filenames containing the text ".cookie".

So the solution is to rename the file to somethign else.

Source

0

精彩评论

暂无评论...
验证码 换一张
取 消