Permalink
Browse files

Attempt to get rid og "Script error" through CORS

Not succesfull
  • Loading branch information...
koenbok committed Jan 28, 2016
1 parent f201e2f commit 719b8d5988b0f9b2168f6ed5c94a603890b28c7a
Showing with 6 additions and 2 deletions.
  1. +2 −2 extras/DevServer.framer/index.html
  2. +4 −0 scripts/devserver.coffee
@@ -78,8 +78,8 @@
</script>
<script src="http://localhost:8123/webpack-dev-server.js"></script>
<script src="http://localhost:8123/framer.js"></script>
<script crossorigin="anonymous" src="http://localhost:8123/webpack-dev-server.js"></script>
<script crossorigin="anonymous" src="http://localhost:8123/framer.js"></script>
<script src="framer/coffee-script.js"></script>
<script src="framer/framer.generated.js"></script>
View
@@ -21,6 +21,10 @@ config =
loader: "coffee-loader"
}
]
devServer:
headers:
"Access-Control-Allow-Methods": "GET, POST, PUT, DELETE, OPTIONS"
"Access-Control-Allow-Origin": "*"
# First we fire up Webpack an pass in the configuration we
# created

0 comments on commit 719b8d5

Please sign in to comment.