It's both in the US, uncooked eggs can give salmonella. But most places that have "edible cookie dough" use non-raw flour and no eggs so you can actually eat the dough raw safely.
You can make safe edible cookie dough pretty easily . The eggs aren't the only issue, it's the flour itself. If you bake it at like 275F for 30 mins in a sheet pan it'll sterilize it. For edible cookie dough that won't be baked you don't even need eggs.
Having said that, I too have eaten my share of regular cookie dough.
Starting with my grandmother, I've been warned by the various bakers in my life for about 50 years that the various kinds of raw dough I have wheedled them into giving me or snuck off of their work area will give me a stomach ache or cause other issues. The most recent time I was warned in this way was surely less than 2 months ago.
So far so good, not a single problem, and I never pass up a chance to eat uncooked batter or dough.
I am absolutely not saying the risk doesn't exist, but the chance of it seems so minuscule (based on my anecdotal lifelong experience) that I only ever think about it when someone brings it up.
If I bought something prepackaged on a grocery store shelf, like from nabisco or whatever, that was undercooked, I wouldn't eat it. From the kitchen of a relative or right from a bakery - has never given me pause.
Flour is flammable and light. If the fan makes a bunch of it fly around in your oven the heating element could ignite it. Search YouTube for "flour fire".
Probably not super dangerous at if you're just baking a sheet pan of flour, but good to be safe.