Rowling was a target of abuse on social media after backing the Scottish independence pro-union campaign Better Together.
Police Scotland confirmed they were considering a report of online crime in relation to the writer.
Scotland's senior prosecutor said those responsible for "grossly offensive" messages would be prosecuted.
Police in Scotland are examining an allegation of "online criminality" against Harry Potter author JK Rowling.