简体   繁体   中英

Unable to make AJAX call on Codepen.io

My codepen written 6 months ago no longer works. The codepen makes an Ajax call to grab data. I am grabbing the data via jQuery.ajax()

With a normal http protocol, I am warned that the content from Codepen was loaded via https but the ajax request is via https. When I switch the URL to https, I get a 'Access-Control-Allow-Origin' error.

How do you execute ajax requests on codepen.io? My example worked as late as June 2017.

My Codepen

I found this resource from codepen.io, but crossorigin.me doesn't seem to be online. Are there other resources that would play nicely with Codepen?

我通过将数据推送到我的github帐户并从那里提供数据来解决了我的问题。

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