I am using cors_plug with a whitelist in my endpoint file, but i would like ot make a subset of endpoints publicly available based on url.
is this possible?
I know that this is not possible, but on idea level this is what I am looking for:
if x do plug(CORSPlug, origin: "hehexd.com") else plug(CORSPlug, origin: "*") end
I tried to move it to the router and have different pipelines, but then i would need to add options request type to all of my non get requests and that is not something i’d like to do