"Uncaught (in promise) Error: Permission denied to set cookie" When using chrome.cookies.set inside of extension with manifest v3

I tried changing to v2, and it seems like it recognizes the permission as required now. But when using chrome.cookies.get() it returns an empty array, even though the website has cookies.

Actually, seems like I might be able to get this to work. MV3 is very weird in firefox.