[What you need to know to start the day: Get New York Today in your inbox.]

As cities around the country made bids to land Amazon’s second headquarters, lawmakers and residents were purposely left in the dark.

Amazon required those involved in the process to sign nondisclosure agreements, leaving outsiders outraged when details of the deals were released only after they were finalized.

Now, New York lawmakers are taking aim at this kind of secretive process. On Thursday, Councilman Brad Lander of Brooklyn will introduce legislation that would ban New York City from entering into nondisclosure agreements during negotiations for prospective development projects. A similar bill will be introduced in Albany by State Senator Michael N. Gianaris of Queens in the upcoming legislative session.

The efforts comes amid a nationwide backlash against Amazon and its HQ2 sweepstakes, which critics said allowed the online retail behemoth to collect data from cities across the nation and resulted in economic development officials offering massive incentives without public debate. In New York, officials gave Amazon city and state tax incentives and a state grant that together is worth roughly $3 billion, and approval to skirt the city’s land use review process.