admin管理员组文章数量:1335081
To avoid CORS and speed up my static site, I have made a "proxy" from my static site.
Basically, I can make a request to: staticsite/wp-json/some-endpoint
and it fetch and return the response from mywordpresssite/wp-json/some-endpoint
(pretty cool if you ask me). It works fine for almost all my endpoints, however, I have just discovered that it doesn't work with this package:
When I go to: staticsite/wp-json/swp_api/search?s=query
it correctly returns the data from mywordpresssite/wp-json/swp_api/search?s=query
,however it returns "No route was found matching the URL and request method"
.
I am not sure what I am doing wrong, or what I could do to avoid this issue. It seems specific to this plugin somehow, since all the other endpoints work fine.
If I visit the endpoint directly from mywordpressiste
it works fine.
本文标签: url rewriting404 Rest Route not foundwhen serving behind quotproxyquot
版权声明:本文标题:url rewriting - 404 Rest Route not found - when serving behind "proxy" 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742384730a2464801.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论