简体   繁体   中英

Why Is My Feed2JS RSS Feed Working Locally But Not After Deployed? (GitHub Pages)

I'm using feedtojs.org to populate a feed of my Medium blog posts to my GitHub Pages site. For some reason, it is working totally fine on my local server, but not on the domain itself. The RSS feed is valid.

Here is how it looks on my local server:

工作 RSS 提要

Here is how it looks when loaded on the actual domain:

不工作的 RSS 提要

Here is the link to my website (in case it helps for reference/context)

Here is my code (copy-pasted directly from the build instructions on feed2js):

    <script language="JavaScript" 
            src="http://feed2js.org//feed2js.php?src=https%3A%2F%2Fmedium.com%2Ffeed%2F%40coltonkaiser&chan=title&date=y&targ=y&utf=y"  
            charset="UTF-8" 
            type="text/javascript">
    </script>
    <noscript>
        <a href="http://feed2js.org//feed2js.php?src=https%3A%2F%2Fmedium.com%2Ffeed%2F%40coltonkaiser&chan=title&date=y&targ=y&utf=y&html=y">
           View RSS feed
        </a>
    </noscript>

Thanks in advance: :)

Jaromanda X 's solution worked. Simply needed to change the script URL to https. Works like a charm now

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM