Wordpress nonce会导致wordpress admin ajax php 403 error错误

2.70K 浏览技术资料
0

WordPress Nonce 通过提供一个随机数,来实现在数据请求(比如,在后台保存插件选项,AJAS 请求,执行其他操作等等)的时候防止未授权的请求。

但是WordPress Nonce 有效期只有24小时,如果你使用了W3 Total Cache、WP Super Cache等各类缓存,将页面缓存的过期时间设置超过24小时,则可能会出现wordpress admin ajax php 403 error错误。

解决的办法就是将WP的页面缓存时间过期低于24小时。


分享到:
Qi 问的问题 2020年10月23日
添加评论
写下您的答案。

Login

Welcome! Login in to your account

Remember me Lost your password?

Don't have account. Register

Lost Password

Register