Skip to content

Commit

Permalink
Merge pull request DiversityTemplating#5 from davidlgj/master
Browse files Browse the repository at this point in the history
Added Access-Control-Allow-Origin * headers
  • Loading branch information
jonas hadin committed Sep 25, 2014
2 parents 8d62d9f + 42e1ad7 commit 00c40e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/component_handler.erl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
-record(state, {
}).

-define(JSON_HEADER, [{<<"content-type">>, <<"application/json">>}]).
-define(JSON_HEADER, [{<<"content-type">>, <<"application/json">>}, {<<"Access-Control-Allow-Origin">>, <<"*">>}]).

init(_, Req, _Opts) ->
{ok, Req, #state{}}.
Expand Down

0 comments on commit 00c40e2

Please sign in to comment.