I added
same_site: "Lax"
without result.
The connection of https://smiks.online contains the cookie:
%Plug.Conn{
adapter: {Plug.Cowboy.Conn, :...},
assigns: %{user: "VWOK", username: "VAN WOENSEL Kristof"},
before_send: [#Function<0.58972466/1 in Plug.CSRFProtection.call/2>,
#Function<2.50475867/1 in Phoenix.Controller.fetch_flash/2>,
#Function<0.38038610/1 in Plug.Session.before_send/2>,
#Function<0.24098476/1 in Plug.Telemetry.call/2>],
body_params: %{},
cookies: %{
"_smiks_apps_key" => "SFMyNTY.g3QAAAABbQAAAAR1c2VybQAAAARWV09L.cjoZgpc9uYhEIMejxhKwuNVHj9hC1fuQEsRPEPT00QI"
},
halted: false,
host: "localhost",
method: "GET",
owner: #PID<0.3073.0>,
params: %{},
path_info: [],
path_params: %{},
port: 4007,
private: %{
SmiksLoginWeb.Router => {[], %{}},
:phoenix_action => :index,
:phoenix_controller => SmiksLoginWeb.PageController,
:phoenix_endpoint => SmiksLoginWeb.Endpoint,
:phoenix_flash => %{},
:phoenix_format => "html",
:phoenix_layout => {SmiksLoginWeb.LayoutView, :app},
:phoenix_router => SmiksLoginWeb.Router,
:phoenix_view => SmiksLoginWeb.PageView,
:plug_session => %{"user" => "VWOK"},
:plug_session_fetch => :done
},query_params: %{},
query_string: "",
remote_ip: {0, 0, 0, 0, 0, 65535, 44057, 1},
req_cookies: %{
"_smiks_apps_key" => "SFMyNTY.g3QAAAABbQAAAAR1c2VybQAAAARWV09L.cjoZgpc9uYhEIMejxhKwuNVHj9hC1fuQEsRPEPT00QI"
},
req_headers: [
{"accept",
"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8"},
{"accept-encoding", "gzip, deflate, br"},
{"accept-language", "en-US,en;q=0.5"},
{"cache-control", "max-age=0"},
{"connection", "upgrade"},
{"cookie",
"_smiks_apps_key=SFMyNTY.g3QAAAABbQAAAAR1c2VybQAAAARWV09L.cjoZgpc9uYhEIMejxhKwuNVHj9hC1fuQEsRPEPT00QI"},
{"host", "localhost:4007"},
{"referer", "https://smiks.smartschool.be/"},
{"upgrade-insecure-requests", "1"},
{"user-agent",
"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:84.0) Gecko/20100101 Firefox/84.0"},
{"x-forwarded-for", "94.226.254.172"}
],
request_path: "/",
resp_body: nil,
resp_cookies: %{},
resp_headers: [
{"cache-control", "max-age=0, private, must-revalidate"},
{"x-request-id", "Fl3EvO2x6Euue5MAAAHB"},
{"x-frame-options", "SAMEORIGIN"},
{"x-xss-protection", "1; mode=block"},
{"x-content-type-options", "nosniff"},
{"x-download-options", "noopen"},
{"x-permitted-cross-domain-policies", "none"},
{"cross-origin-window-policy", "deny"}
],
scheme: :http,
script_name: [],
secret_key_base: :...,
state: :unset,
status: nil
}
The connection from extramuros.smiks.online still doesn’t contain any cookie. I also tried with put_resp_cookie without result.