Running Experiment from HTML output only?


Forgive me if this has been answered somewhere but I am not sure what to search for. Is it possible to run an experiment from HTML files offline without PsychoPy3 installed? It’s a long story why I need to be able to do this (I know it would be easier using Pavlovia).

When I open my index.html in my browser it hangs with “initialising experiment” in the middle of the screen. Here is the console output in browser:

Access to script at ‘file:///C:/Users/owner/Desktop/html/lexical_decision_task.js’ from origin ‘null’ has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome-extension, edge, https, chrome-untrusted.
lexical_decision_task.js:1 Failed to load resource: net::ERR_FAILED
Tone.min.js:1 * Tone.js v13.8.6 *

So, I guess this is a CORS issue? Is it easily corrected? If not, can anyone recommend an alternative way to run the experiment offline without having PsychoPy3 runner installed?

This software is fantastic, cheers!

1 Like

Sorry, but I don’t believe this is possible. PsychoPy experiments require access to the PsychoJS libraries.

Thank you!