最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

ajax - Can a wp_nonce created from domain 1 to be verified on domain 2?

programmeradmin10浏览0评论

From the Domain 1 i want to make an AJAX request to Domain 2.

I would like to create a wp_nonce on Domain 1 and send it with AJAX request to Domain 2, then verify it on Domain 2.

The 2 domains are on 2 different servers. Is that possible?

From the Domain 1 i want to make an AJAX request to Domain 2.

I would like to create a wp_nonce on Domain 1 and send it with AJAX request to Domain 2, then verify it on Domain 2.

The 2 domains are on 2 different servers. Is that possible?

Share Improve this question asked Jun 4, 2019 at 10:25 JozefiniJozefini 1661 silver badge6 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 2

No, it is not possible. Nonce is generated on server as a function of domain name, user information, action, time, etc.

This is made especially to distinguish requests from one server to another.

发布评论

评论列表(0)

  1. 暂无评论