Like others have said, may is giving you the option, can is the ability to do something. So for instance in America in early years of school, it is very common to be corrected from "can I go to the bathroom" to "may I go to the bathroom" because you have the ability to go there, you are instead asking permission from the teacher.