使用API、curl和PHP执行PUT时出现“BAD CSRF”

您需要在请求头中放入 Api-KeyApi-Username 的值。本主题末尾有一个 curl 示例,可能会对您有所帮助:https://meta.discourse.org/t/sync-sso-user-data-with-the-sync-sso-route/84398。

5 个赞