Skip to content

Commit

Permalink
fix cors
Browse files Browse the repository at this point in the history
  • Loading branch information
ksevelyar committed Nov 26, 2023
1 parent 45ce01e commit 6a30866
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/market_web/endpoint.ex
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule MarketWeb.Endpoint do
use Phoenix.Endpoint, otp_app: :market

plug CORSPlug, origin: [System.get_env("FRONT", "localhost:3000")]
plug CORSPlug, origin: [System.get_env("FRONT", "http://localhost:3000")]

# The session will be stored in the cookie and signed,
# this means its contents can be read but not tampered with.
Expand Down

0 comments on commit 6a30866

Please sign in to comment.