There are conflicting rules about traveling with edibles because the laws depend on the starting point of travel, destination, and even the countries or states passed during the journey. Where some places are known to permit the use of recreational or medical cannabis, there are other regions which do not permit this and could result in severe legal repercussions.
Airports do not usually consider the threat from cannabis products when it comes to security. However, travelers will be referred to the appropriate authorities if prohibited items are found. It does not matter if the cannabis product is legal in the place you are living in because you could be flying into another region which considers cannabis to be illegal.
Edibles on a plane, Always carry out research regarding the laws at the destination and the starting point of travel to understand how the airlines treat this particular kind of item. If in doubt, the best approach is to avoid carrying any kind of cannabis product on the trip.