Skip to content

Commit

Permalink
Attempt to get rid og "Script error" through CORS
Browse files Browse the repository at this point in the history
Not succesfull
  • Loading branch information
koenbok committed Jan 28, 2016
1 parent f201e2f commit 719b8d5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extras/DevServer.framer/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
4 changes: 4 additions & 0 deletions scripts/devserver.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 719b8d5

Please sign in to comment.