{"action":"created","issue":{"url":"https://api.github.com/repos/processing/processing/issues/4345","repository_url":"https://api.github.com/repos/processing/processing","labels_url":"https://api.github.com/repos/processing/processing/issues/4345/labels{/name}","comments_url":"https://api.github.com/repos/processing/processing/issues/4345/comments","events_url":"https://api.github.com/repos/processing/processing/issues/4345/events","html_url":"https://github.com/processing/processing/issues/4345","id":138025132,"number":4345,"title":"Unable to add .pde file to web page","user":{"login":"rohitsam","id":16455716,"avatar_url":"https://avatars.githubusercontent.com/u/16455716?v=3","gravatar_id":"","url":"https://api.github.com/users/rohitsam","html_url":"https://github.com/rohitsam","followers_url":"https://api.github.com/users/rohitsam/followers","following_url":"https://api.github.com/users/rohitsam/following{/other_user}","gists_url":"https://api.github.com/users/rohitsam/gists{/gist_id}","starred_url":"https://api.github.com/users/rohitsam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rohitsam/subscriptions","organizations_url":"https://api.github.com/users/rohitsam/orgs","repos_url":"https://api.github.com/users/rohitsam/repos","events_url":"https://api.github.com/users/rohitsam/events{/privacy}","received_events_url":"https://api.github.com/users/rohitsam/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-02T23:25:56Z","updated_at":"2016-03-03T12:00:28Z","closed_at":null,"body":"here is my html code\r\n<html>\r\n  <head>\r\n\r\n<script src=\"game/processing.min.js\"></script>\r\n<canvas data-processing-sources=\"game/game.pde\"></canvas>\r\n\r\n  </head>\r\n  <body>\r\n  \t\r\n  </body>\r\n  </html>\r\nerror i was getting:\r\nUncaught Processing.js: Unable to load pjs sketch files: game/Game.pde ==> XMLHttpRequest failure, possibly due to a same-origin policy violation. You can try loading this page in another browser, or load it from http://localhost using a local webserver. See the Processing.js README for a more detailed explanation of this problem and solutions.n @ processing.min.js:18b.onreadystatechange @ processing.min.js:17e @ processing.min.js:18b @ processing.min.js:19k.loadSketchFromSources @ processing.min.js:19p @ processing.min.js:19"},"comment":{"url":"https://api.github.com/repos/processing/processing/issues/comments/191725688","html_url":"https://github.com/processing/processing/issues/4345#issuecomment-191725688","issue_url":"https://api.github.com/repos/processing/processing/issues/4345","id":191725688,"user":{"login":"JamesJDillon","id":14792774,"avatar_url":"https://avatars.githubusercontent.com/u/14792774?v=3","gravatar_id":"","url":"https://api.github.com/users/JamesJDillon","html_url":"https://github.com/JamesJDillon","followers_url":"https://api.github.com/users/JamesJDillon/followers","following_url":"https://api.github.com/users/JamesJDillon/following{/other_user}","gists_url":"https://api.github.com/users/JamesJDillon/gists{/gist_id}","starred_url":"https://api.github.com/users/JamesJDillon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JamesJDillon/subscriptions","organizations_url":"https://api.github.com/users/JamesJDillon/orgs","repos_url":"https://api.github.com/users/JamesJDillon/repos","events_url":"https://api.github.com/users/JamesJDillon/events{/privacy}","received_events_url":"https://api.github.com/users/JamesJDillon/received_events","type":"User","site_admin":false},"created_at":"2016-03-03T12:00:28Z","updated_at":"2016-03-03T12:00:28Z","body":"I've encountered this error before using a different Js library. What I assume you're doing is just trying to open you're index.html file directly in your browser? What you should try is setting up a local webserver (such as XAMMP if you're on windows), and try running it through that. For instance, on windows:\r\n\r\n1.Download XAMMP.\r\n2. Install XAMMP.\r\n3. Navigate to the htdocs directory (in your xammp folder).\r\n4. Place your project in this directory.\r\n5. Start XAMMP administrator, and start apache. \r\n6. Navigate to: localhost:(port number, usually 80)/foldername/index.html"}}