You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Sketches exported for web in Javascript Mode don't open in Chrome #798
From fjen...@gmail.com on June 28, 2011 06:53:16
The actual error is:
XMLHttpRequest cannot load file:///Users/fjenett/Desktop/sketch_jun28a/applet_js/sketch_jun28a.pde. Origin null is not allowed by Access-Control-Allow-Origin.
This is normal Chrome behavior and the reason we added the preview server in the first place. Background is that local files are not treated to be related by Chrome (and others) so it fails with a security exception for the XHR (Ajax) request to that file which is how Processing.js loads the .pde files.
From fjen...@gmail.com on June 28, 2011 07:57:52
Reading my comment above i realize that it probably did not make much sense to anyone. So, attempt #2:
The .pde file is empty because Chrome blocks access to it. This happens for all files that it thinks do not come from the same domain and local files are treated the same way. This is a normal security measure.
Activity
processing-bugs commentedon Feb 10, 2013
From fjen...@gmail.com on June 28, 2011 06:53:16
The actual error is:
XMLHttpRequest cannot load file:///Users/fjenett/Desktop/sketch_jun28a/applet_js/sketch_jun28a.pde. Origin null is not allowed by Access-Control-Allow-Origin.
This is normal Chrome behavior and the reason we added the preview server in the first place. Background is that local files are not treated to be related by Chrome (and others) so it fails with a security exception for the XHR (Ajax) request to that file which is how Processing.js loads the .pde files.
processing-bugs commentedon Feb 10, 2013
From fjen...@gmail.com on June 28, 2011 07:57:52
Reading my comment above i realize that it probably did not make much sense to anyone. So, attempt #2:
The .pde file is empty because Chrome blocks access to it. This happens for all files that it thinks do not come from the same domain and local files are treated the same way. This is a normal security measure.
github-actions commentedon Jun 18, 2021
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.