remove corsplug
This commit is contained in:
@@ -25,7 +25,8 @@ defmodule PolicyServiceWeb.Endpoint do
|
|||||||
from: :policy_service,
|
from: :policy_service,
|
||||||
gzip: not code_reloading?,
|
gzip: not code_reloading?,
|
||||||
only: PolicyServiceWeb.static_paths(),
|
only: PolicyServiceWeb.static_paths(),
|
||||||
raise_on_missing_only: code_reloading?
|
raise_on_missing_only: code_reloading?,
|
||||||
|
headers: %{"Access-Control-Allow-Origin" => "*"}
|
||||||
|
|
||||||
# Code reloading can be explicitly enabled under the
|
# Code reloading can be explicitly enabled under the
|
||||||
# :code_reloader configuration of your endpoint.
|
# :code_reloader configuration of your endpoint.
|
||||||
@@ -42,7 +43,6 @@ defmodule PolicyServiceWeb.Endpoint do
|
|||||||
pass: ["*/*"],
|
pass: ["*/*"],
|
||||||
json_decoder: Phoenix.json_library()
|
json_decoder: Phoenix.json_library()
|
||||||
|
|
||||||
plug CORSPlug
|
|
||||||
plug Plug.MethodOverride
|
plug Plug.MethodOverride
|
||||||
plug Plug.Head
|
plug Plug.Head
|
||||||
plug Plug.Session, @session_options
|
plug Plug.Session, @session_options
|
||||||
|
|||||||
Reference in New Issue
Block a user