deflinhec / GodotGoogleSheet

Godot plugin written in GDScript which downloads Google spreadsheet.
MIT License
17 stars 2 forks source link

HTML5 export #10

Open Scooterkip opened 2 years ago

Scooterkip commented 2 years ago

Using the example project given with the plugin, it works just fine with a windows export, but running an HTML5 export of the project doesn't yield any results. I've got .json files included in the export, and I'm using user:// as the filepath. Any help?

Wildos commented 2 years ago

There are some things to take into account for HTML export due to its limitations:

I had an issue after that: google sheet refused my request because they were not GET request (they were OPTIONS), after some research I may be caused by the fact that the headers were filled so I fixed that by removing the headers content http.request(HTTPClient.METHOD_GET, URI, []) instead of http.request(HTTPClient.METHOD_GET, URI, headers)