oauth 2.0 - Connecting Xero Api to my local in php, I am using local by flywheel

one text

I am not able to successfully run xero oauth2 api on my local.

I tried it by reading the documentation and watching a video on youtube by xero developer and I was successfully able to create the button and api on MAMP local server. But when I try to do the same with my actual local i.e local by flywheel I am not able to open the button page. Please help me, been stuck on these from many days. I want the same button on one of my php pages in a modal and after clicking the button the xero starter app should run and after successful login it should fetch all the details and store it in the storage, I guess.

Source