{"action":"created","issue":{"url":"https://api.github.com/repos/gadicc/meteor-hmr/issues/124","repository_url":"https://api.github.com/repos/gadicc/meteor-hmr","labels_url":"https://api.github.com/repos/gadicc/meteor-hmr/issues/124/labels{/name}","comments_url":"https://api.github.com/repos/gadicc/meteor-hmr/issues/124/comments","events_url":"https://api.github.com/repos/gadicc/meteor-hmr/issues/124/events","html_url":"https://github.com/gadicc/meteor-hmr/issues/124","id":162771672,"number":124,"title":"Refused to load the script 'http://localhost:3002/hot.js","user":{"login":"purplecones","id":136654,"avatar_url":"https://avatars.githubusercontent.com/u/136654?v=3","gravatar_id":"","url":"https://api.github.com/users/purplecones","html_url":"https://github.com/purplecones","followers_url":"https://api.github.com/users/purplecones/followers","following_url":"https://api.github.com/users/purplecones/following{/other_user}","gists_url":"https://api.github.com/users/purplecones/gists{/gist_id}","starred_url":"https://api.github.com/users/purplecones/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/purplecones/subscriptions","organizations_url":"https://api.github.com/users/purplecones/orgs","repos_url":"https://api.github.com/users/purplecones/repos","events_url":"https://api.github.com/users/purplecones/events{/privacy}","received_events_url":"https://api.github.com/users/purplecones/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-06-28T19:53:16Z","updated_at":"2016-06-28T20:10:22Z","closed_at":null,"body":"## Description of Problem\r\n\r\nWhen I make an edit to a file, the error below appears in the browser console.\r\n\r\n* [x] I switched back to the regular `ecmascript` and the problem went away.\r\n\r\n*Please copy and paste the full error from the console, if one occcured.*\r\n\r\n```\r\nwebsocket.js:17 Refused to load the script 'http://localhost:3002/hot.js?hash=ef9a3f23aa4263040d0079c15a65de0a9675e8de' because it violates the following Content Security Policy directive: \"script-src 'self' 'unsafe-inline'\".\r\nws.onmessage @ websocket.js:17\r\n```\r\n\r\n## Environment\r\n\r\n* Meteor version:\r\n* ecmascript-hot version: gadicc:ecmascript-hot@2.0.0-beta.6\r\n* Operating System: OSX 10.11.3\r\n\r\n## Supporting files\r\n\r\n<details>\r\n<summary>`.meteor/packages`</summary>\r\n```\r\n# Meteor packages used by this project, one per line.\r\n# Check this file (and the other files in this directory) into your repository.\r\n#\r\n# 'meteor add' and 'meteor remove' will edit this file for you,\r\n# but you can also edit it by hand.\r\n\r\nmeteor-base             # Packages every Meteor app needs to have\r\nmobile-experience       # Packages for a great mobile UX\r\nmongo                   # The database Meteor supports right now\r\nreactive-var            # Reactive variable for tracker\r\nsession\r\ntracker                 # Meteor's client-side reactive programming library\r\n\r\nstandard-minifier-css   # CSS minifier run for production mode\r\nstandard-minifier-js    # JS minifier run for production mode\r\nes5-shim                # ECMAScript 5 compatibility for older browsers.\r\n#ecmascript              # Enable ECMAScript2015+ syntax in app code\r\n\r\naccounts-password\r\naccounts-base\r\ncheck\r\naudit-argument-checks\r\nbrowser-policy\r\n\r\nfourseven:scss\r\naldeed:collection2\r\nalanning:roles\r\nthemeteorchef:bert\r\nstatic-html\r\nxolvio:cleaner\r\npracticalmeteor:mocha\r\nxolvio:backdoor\r\nmdg:validated-method\r\ndburles:factory@1.0.0\r\nddp-rate-limiter\r\ngadicc:ecmascript-hot@2.0.0-beta.6\r\n```\r\n</details><details>\r\n<summary>`.meteor/versions`</summary>\r\n```\r\naccounts-base@1.2.8\r\naccounts-password@1.1.11\r\nalanning:roles@1.2.15\r\naldeed:collection2@2.9.1\r\naldeed:collection2-core@1.1.1\r\naldeed:schema-deny@1.0.1\r\naldeed:schema-index@1.0.1\r\naldeed:simple-schema@1.5.3\r\nallow-deny@1.0.5\r\naudit-argument-checks@1.0.7\r\nautoupdate@1.2.10\r\nbabel-compiler@6.8.3\r\nbabel-runtime@0.1.9_1\r\nbase64@1.0.9\r\nbinary-heap@1.0.9\r\nblaze@2.1.8\r\nblaze-tools@1.0.9\r\nboilerplate-generator@1.0.9\r\nbrowser-policy@1.0.9\r\nbrowser-policy-common@1.0.10\r\nbrowser-policy-content@1.0.11\r\nbrowser-policy-framing@1.0.11\r\ncaching-compiler@1.0.5_1\r\ncaching-html-compiler@1.0.6\r\ncallback-hook@1.0.9\r\ncheck@1.2.3\r\ncoffeescript@1.1.2_1\r\ndburles:factory@1.0.0\r\nddp@1.2.5\r\nddp-client@1.2.8_1\r\nddp-common@1.2.6\r\nddp-rate-limiter@1.0.5\r\nddp-server@1.2.8_1\r\ndeps@1.0.12\r\ndiff-sequence@1.0.6\r\necmascript@0.4.6_1\r\necmascript-runtime@0.2.11_1\r\nejson@1.0.12\r\nemail@1.0.14_1\r\nes5-shim@4.5.12_1\r\nfastclick@1.0.12\r\nfortawesome:fontawesome@4.5.0\r\nfourseven:scss@3.8.0_1\r\ngadicc:ecmascript-hot@2.0.0-beta.6\r\ngadicc:hot@2.0.0-beta.3\r\ngadicc:hot-build@2.0.0-beta.6\r\ngadicc:modules-runtime-hot@0.6.4-beta.1\r\ngadicc:package-json@1.0.4\r\ngeojson-utils@1.0.9\r\nhot-code-push@1.0.4\r\nhtml-tools@1.0.10\r\nhtmljs@1.0.10\r\nhttp@1.1.7\r\nid-map@1.0.8\r\njquery@1.11.9\r\nlaunch-screen@1.0.12\r\nlivedata@1.0.18\r\nlocalstorage@1.0.11\r\nlogging@1.0.13_1\r\nmdg:validated-method@1.1.0\r\nmdg:validation-error@0.5.1\r\nmeteor@1.1.15_1\r\nmeteor-base@1.0.4\r\nmeteorhacks:inject-initial@1.0.4\r\nminifier-css@1.1.12_1\r\nminifier-js@1.1.12_1\r\nminimongo@1.0.17\r\nmobile-experience@1.0.4\r\nmobile-status-bar@1.0.12\r\nmodules@0.6.4\r\nmodules-runtime@0.6.4_1\r\nmongo@1.1.9_1\r\nmongo-id@1.0.5\r\nnpm-bcrypt@0.8.7\r\nnpm-mongo@1.4.44_1\r\nobserve-sequence@1.0.12\r\nordered-dict@1.0.8\r\npackage-version-parser@3.0.9\r\npracticalmeteor:chai@2.1.0_1\r\npracticalmeteor:loglevel@1.2.0_2\r\npracticalmeteor:mocha@2.4.5_4\r\npracticalmeteor:mocha-core@1.0.0\r\npracticalmeteor:sinon@1.14.1_2\r\npromise@0.7.2_1\r\nraix:eventemitter@0.1.3\r\nrandom@1.0.10\r\nrate-limit@1.0.5\r\nreactive-dict@1.1.8\r\nreactive-var@1.0.10\r\nreload@1.1.10\r\nretry@1.0.8\r\nroutepolicy@1.0.11\r\nsanjo:meteor-files-helpers@1.2.0_1\r\nsanjo:meteor-version@1.0.0\r\nservice-configuration@1.0.10\r\nsession@1.1.6\r\nsha@1.0.8\r\nspacebars@1.0.12\r\nspacebars-compiler@1.0.12\r\nsrp@1.0.9\r\nstandard-minifier-css@1.0.7_1\r\nstandard-minifier-js@1.0.7_1\r\nstatic-html@1.0.10_1\r\ntemplating@1.1.12_1\r\ntemplating-tools@1.0.4\r\nthemeteorchef:bert@2.1.0\r\ntmeasday:test-reporter-helpers@0.2.1\r\ntracker@1.0.14\r\nui@1.0.11\r\nunderscore@1.0.9\r\nurl@1.0.10\r\nwebapp@1.2.9_1\r\nwebapp-hashing@1.0.9\r\nxolvio:backdoor@0.2.0\r\nxolvio:cleaner@0.3.1\r\n```\r\n</details>\r\n"},"comment":{"url":"https://api.github.com/repos/gadicc/meteor-hmr/issues/comments/229167662","html_url":"https://github.com/gadicc/meteor-hmr/issues/124#issuecomment-229167662","issue_url":"https://api.github.com/repos/gadicc/meteor-hmr/issues/124","id":229167662,"user":{"login":"purplecones","id":136654,"avatar_url":"https://avatars.githubusercontent.com/u/136654?v=3","gravatar_id":"","url":"https://api.github.com/users/purplecones","html_url":"https://github.com/purplecones","followers_url":"https://api.github.com/users/purplecones/followers","following_url":"https://api.github.com/users/purplecones/following{/other_user}","gists_url":"https://api.github.com/users/purplecones/gists{/gist_id}","starred_url":"https://api.github.com/users/purplecones/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/purplecones/subscriptions","organizations_url":"https://api.github.com/users/purplecones/orgs","repos_url":"https://api.github.com/users/purplecones/repos","events_url":"https://api.github.com/users/purplecones/events{/privacy}","received_events_url":"https://api.github.com/users/purplecones/received_events","type":"User","site_admin":false},"created_at":"2016-06-28T20:10:22Z","updated_at":"2016-06-28T20:10:22Z","body":"Thanks @santiagopuentep for pointing that out! I didn't realize this package was added. \r\nI'm using this https://themeteorchef.com/base/ boilerplate as a starting template. \r\n\r\nHowever adding this doesn't seem to do anything:\r\n```\r\nimport { BrowserPolicy } from 'meteor/browser-policy-common';\r\nBrowserPolicy.content.allowConnectOrigin('ws://localhost:3002/');\r\n```\r\n\r\nI also tried `BrowserPolicy.content.allowConnectOrigin('http://localhost');` but no change. Error still gets thrown.\r\n"}}
{"actor":{"display_login":"purplecones"}}