Forum Discussion
problem in send data from storyline to googlesheet
So when checking on https://releases.jquery.com/jquery/ the code for properly injecting jQuery is like this:<script src="https://code.jquery.com/jquery-1.1.1.js" integrity="sha256-6/6tEG91KdLJdvYQDRIjcmzsB4N/QQ92AmlTtBnSCUQ=" crossorigin="anonymous"></script>
So when you replace the code you used inside your script by this url...
you get another error...
Now Storyline is trying to connect with your Google Sheet but due to CORS ( Cross Origin Resource Sharing policy ) it is not allowed. This is on any browser nowadays. You have to ensure your calls are allowed cross browser else it will be denied access.
But as we seen in the code we copied from jQuery releases inthere is a setting that allows CORS access... 'crossorigin=''anonymous"' in combination with the sha-encryption.
This means if you add the jQuery in another way...either by WebObject or direct inline in the html with this scripttag... it probably will work.<script src="https://code.jquery.com/jquery-1.1.1.js" integrity="sha256-6/6tEG91KdLJdvYQDRIjcmzsB4N/QQ92AmlTtBnSCUQ=" crossorigin="anonymous"></script>
Testing that now.
Related Content
- 2 months ago
- 10 months ago
- 10 months ago
- 11 months ago
- 10 months ago