$ git clone [email protected]:HearthSim/untapped-dev-proxy.git
$ cd untapped-dev-proxy
$ yarn install
$ yarn proxy --service mtga -p 8080
$ yarn proxy abc123abc123abc123 --service mtga -p 8080
This is only necessary for POST requests, which will usually not be the case.
$ yarn proxy abc123abc123abc123 --service mtga -p 8080 --csrf def456def456def456def456
- Go to the production website for the respecive service (e.g.
mtga.untapped.gg
) and log in if you are not - Open the devtools (F12) and go do
Application > Storage > Cookies
(Chrome) orStorage > Cookies
(Firefox) - You will find a
sessionid
and acsrftoken
cookie here
Your session cookie most likely expired. Go to the production website and grab a new one.
- Make sure you are setting the
--csrf
token, seeUsage
above. - If you see failing
OPTIONS
requests in the network logs this probably means that thepolicy.json
file in the *-api-server probject is missing theOPTIONS
entry.