Loading... ## 1.跨域问题解决 在改主站服务器配置文件的时候,不知道什么原因时光机页面突然加载不出来了。然后点击F12调试发现报错:Access to XMLHttpRequest at 'rss地址' from origin '源站' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.  然后就去百度相关问题,发现大部分都是加header字段,而且内容都一样,按照这样改了也对我的问题没有用。 所有rsshub资源都是502 bad gateway. 就连配置的二级域名也是。所以我就想可能跟对应网站服务停止有关。就去PM2管理器里面查看(因为之前是在这个里面配置的),一看日志果然有问题:  这两个项目进程全被杀了,就连项目列表也是空的。所以就重新添加对应项目,添加后就完美解决了问题。 如果是handsome主题配置了rsshub突然有一天之前解析好好的页面报这个错,可能就是由于pm2列表的项目停止或者压根被删了(我没有删,自动没的<img src="https://www.anleenoxu.top/usr/themes/handsome/assets/img/emotion/twemoji/smilecry.png" class="emotion-twemoji">,可能手残把哪个配置改错了吧)。 ## 2.相关文章 <div class="preview"> <div class="post-inser post box-shadow-wrap-normal"> <a href="https://www.anleenoxu.top/archives/156.html" target="_blank" class="post_inser_a no-external-link no-underline-link"> <div class="inner-image bg" style="background-image: url(https://www.anleenoxu.top/usr/uploads/2020/08/3415557681.png);background-size: cover;"></div> <div class="inner-content" > <p class="inser-title">RSS-万物皆可订,零基础用PM2管理器搭建私人RSSHub和跨域服务订阅微博和B站等优质内容</p> <div class="inster-summary text-muted"> 1 RSSRSS 的全称是 Really Simple Syndication(简易信息聚合),它是一种消息来源的... </div> </div> </a> <!-- .inner-content #####--> </div> <!-- .post-inser ####--> </div> Last modification:September 6th, 2020 at 06:37 pm © 允许规范转载 Support 喜欢就加个鸡腿吧! Appreciate the author 支付宝微信