Generally, drone operators should avoid flying near airports because of other air traffic. It is very difficult for other aircraft to see and avoid a drone while flying, and drone operators are responsible for any safety hazard their drone creates in an airport environment.
Option 1: If you have a Remote Pilot Certificate and are following part 107 rules, you must get permission from air traffic control to fly in controlled airspace. The FAA can grant permission two different ways – LAANC or DroneZone.
Option 2: If you are flying with a model aeroclub organization following the Special Rule for Model Aircraft, you must notify the airport operator and air traffic control tower to fly within 5 miles of an airport.
Option 3: If you are a public entity (law enforcement or government agency), the FAA may issue you special permission to fly in a designated location near an airport. For more information about the requirements for law enforcement and government drone operations here.