Skip to content

Commit

Permalink
cors
Browse files Browse the repository at this point in the history
  • Loading branch information
vic committed Jan 3, 2016
1 parent 6b7bc38 commit d9ac353
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ defmodule Elbuencoffi.Mixfile do
{:phoenix_html, "~> 2.1"},
{:phoenix_live_reload, "~> 1.0", only: :dev},
{:cowboy, "~> 1.0"},
{:cors_plug, "~> 0.1.4"},
{:mix_test_watch, "~> 0.2", only: :dev},
{:m2x, github: "attm2x/m2x-elixir"},
{:neo4j_sips, "~> 0.1"}]
Expand Down
1 change: 1 addition & 0 deletions mix.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
%{"con_cache": {:hex, :con_cache, "0.9.0"},
"connection": {:hex, :connection, "1.0.2"},
"cors_plug": {:hex, :cors_plug, "0.1.4"},
"cowboy": {:hex, :cowboy, "1.0.4"},
"cowlib": {:hex, :cowlib, "1.0.2"},
"decimal": {:hex, :decimal, "1.1.1"},
Expand Down
1 change: 1 addition & 0 deletions web/router.ex
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ defmodule Elbuencoffi.Router do
end

pipeline :api do
plug CORSPlug, [origin: "*"]
plug :accepts, ["json"]
end

Expand Down

0 comments on commit d9ac353

Please sign in to comment.