Closed Nuku closed 8 years ago
XMLHttpRequest cannot load https://docs.google.com/spreadsheets/d/1URWEIVmdt8owVTJ94d0qUCEvdgFZPlW8Jw1FGq56CYs/pub?output=csv. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://whoismypony.ponyfinder.net' is therefore not allowed access.
Please see #24
Google unfortunately have changed the way published sheets worked. Is it possible for you to download your spreadsheet and host it yourself, using one of the other init
methods?
Looking into how to work around this change to docs!
What is the easiest way to get my spreadsheet out into a file that can be reached by wtf?
I just manually wrote it out into the JSON format. Might be tedious, but it got the job done for www.wtfplans.com
On Tue, Oct 13, 2015 at 5:42 PM, David Silver notifications@github.com wrote:
What is the easiest way to get my spreadsheet out into a file that can be reached by wtf?
— Reply to this email directly or view it on GitHub https://github.com/soulwire/WTFEngine/issues/25#issuecomment-147862467.
@Nuku just about to push an update that should fix this issue so you don't have to change anything!..
@soulwire Alright! Thanks!
Ok, give that a try. All you should have to do is replace your wtf.js with the latest and see if that works. It's a quick fix so not thoroughly tested but data is coming through ok for me with the test spreadsheet.
Ok! It didn't get stuck in loading, but it's showing the default data?
Fixed!
Many thanks!
Cool - yeah it looked like what was published at your link was the default data (https://docs.google.com/spreadsheets/d/1URWEIVmdt8owVTJ94d0qUCEvdgFZPlW8Jw1FGq56CYs/pub) what's your spreadsheet key?
Where is this 'key' located?
On Tue, Oct 13, 2015 at 3:18 PM, Justin Windle notifications@github.com wrote:
Cool - yeah it looked like what was published at your link was the default data ( https://docs.google.com/spreadsheets/d/1URWEIVmdt8owVTJ94d0qUCEvdgFZPlW8Jw1FGq56CYs/pub) what's your spreadsheet key?
— Reply to this email directly or view it on GitHub https://github.com/soulwire/WTFEngine/issues/25#issuecomment-147870295.
It'll be the string you pass to the init method: WTF.init( 'key' );
. Looking at your source code it's 0AvG1Hx204EyydF9ub1M2cVJ3Z1VGdDhTSWg0ZV9LNGc
- is that loading the correct data for you? When I load it it has the default data in it.
It looks to be working right for me now? 1XTuzrWzLtfvb_gQocHK-6PIBKdbhAU_aYnsT3ddrbVs
On Tue, Oct 13, 2015 at 3:22 PM, Justin Windle notifications@github.com wrote:
It'll be the string you pass to the init method: WTF.init( 'key' );. Looking at your source code it's 0AvG1Hx204EyydF9ub1M2cVJ3Z1VGdDhTSWg0ZV9LNGc - is that loading the correct data for you? When I load it it has the default data in it.
— Reply to this email directly or view it on GitHub https://github.com/soulwire/WTFEngine/issues/25#issuecomment-147870861.
Great, yeah that's working when I load it locally too. Glad it's fixed! :)
Thanks again for the speedy fix!
On Tue, Oct 13, 2015 at 3:26 PM, Justin Windle notifications@github.com wrote:
Great, yeah that's working when I load it locally too. Glad it's fixed! :)
— Reply to this email directly or view it on GitHub https://github.com/soulwire/WTFEngine/issues/25#issuecomment-147871746.
No problem. You reminded me I needed to sort this bug so thanks for filing the issue and sorry your site was broke for a little while.
http://whoismypony.ponyfinder.net/ is failing with a Access-Control-Allow-Origin. My attempts to remedy have failed entirely. Any help at all would be appreciated.