move cors up
All checks were successful
Build and Publish / build-release (push) Successful in 1m13s
All checks were successful
Build and Publish / build-release (push) Successful in 1m13s
This commit is contained in:
@@ -45,5 +45,10 @@ defmodule PolicyServiceWeb.Endpoint do
|
||||
plug Plug.MethodOverride
|
||||
plug Plug.Head
|
||||
plug Plug.Session, @session_options
|
||||
|
||||
plug CORSPlug,
|
||||
origin: ["*"],
|
||||
headers: ["*"]
|
||||
|
||||
plug PolicyServiceWeb.Router
|
||||
end
|
||||
|
||||
@@ -5,10 +5,6 @@ defmodule PolicyServiceWeb.Router do
|
||||
alias PolicyServiceWeb.HealthController
|
||||
|
||||
pipeline :api do
|
||||
plug CORSPlug,
|
||||
origin: ["*"],
|
||||
headers: ["*"]
|
||||
|
||||
plug OpenApiSpex.Plug.PutApiSpec, module: PolicyServiceWeb.ApiSpec
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user