There is a newish cookie flag called samesite to do exactly this. Chrome is the only browser to support it though.
The biggest problem solved by cookies has always been sessions. samesite is sufficient for most sessions. It seems like samesite should have been the default from the beginning.