Hi @Neilson Ma Thanks for reaching out. No, we don't have support setting the custom headers during while publishing, however you can define custom headers (with static or dynamic values from payload) on event subscription and Event Grid sets those headers during delivery.
let me know incase of further queries, I would be happy to assist you.
Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.