http://localhost:9292/tag_groups.json
使用上述 URL,我可以获取所有标签组数据,但在浏览器的隐私模式下访问同一 URL 时,会报错“没有匹配 [GET] 请求的路由 "/tag_groups.json"”。
如何在不登录的情况下通过上述 URL 获取标签组信息?
http://localhost:9292/tag_groups.json
使用上述 URL,我可以获取所有标签组数据,但在浏览器的隐私模式下访问同一 URL 时,会报错“没有匹配 [GET] 请求的路由 "/tag_groups.json"”。
如何在不登录的情况下通过上述 URL 获取标签组信息?
You will need to make an authenticated API request. Have a look at the Authentication section of https://docs.discourse.org/ for details about how to do that.
If Simon’s answer isn’t the one you’re looking for, it might help for you to back up and describe your problem (why do you need to get the tag groups?) rather than your proposed solution to it.
i have written one plugin which shows tag group name before each tag name. so these changes have to be displayed without log in.
此主题已在 12 天后自动关闭。不再允许回复。