Executing .ipynb on github?

No, you cannot. That’s not the point at this time. You are wondering why adding the --no-input flag caused what you are seeing and so you need to investigate on your end. Plus, why not connect it to GitHub Pages and try serving it and viewing it online there?
As I’ve been trying to say, you aren’t really working with Jupyter at this point and this is just classic web development troubleshooting.
Since I didn’t say it before ‘unknown origin’ usually means a security thing in the browser. Like you are trying to share local files not allowed or you are linking to another resource on the web that doesn’t have headers set that let’s you incorporate it at the site you are serving from. The mystery is now why only the change of adding the --no-input flag caused that?