Cross-Domain get CSV file

后端 未结 1 507
庸人自扰
庸人自扰 2020-12-21 12:20

I can\'t seem to get a CSV stock file from yahoo finance to \"success\"-fully load. I\'ve tested different callbacks and suggestions from other questions, but none of them s

相关标签:
1条回答
  • 2020-12-21 12:29

    You can not request CSV files from another domain unless they support CORS. Since you do not control yahoo you are out of luck there. You would need to use a proxy [request it from your own server, backend makes the get request] or a service that can make it into a jsonp request.

    0 讨论(0)
提交回复
热议问题