Fix issue with cookies failing on new projects
See original GitHub issueDescribe the bug
I have done a clean install of masonite (and had to additionally pip install masonite-orm as a module error was thrown)
Ran python craft serve then visited local host to see a TypeError - token must be in bytes.
Expected behaviour
Some sort of initial landing page loads without errors after clean install
Steps to reproduce the bug
No response
Screenshots

OS
macOS
OS version
Monterey 12.2.1
Browser
Chrome Version 100.0.4896.60 (Official Build) (arm64)
Masonite Version
4.6.1
Anything else ?
No response
Issue Analytics
- State:
- Created a year ago
- Comments:21 (14 by maintainers)
Top Results From Across the Web
How to Fix 'We've Detected a Problem with your Cookie ...
Open up Opera. · Go to Settings. · Go to Advanced > Privacy and Security. · Now, under Privacy and Security, locate Clear...
Read more >Fixing malfunctioning Web sites with cookie resets - CNET
Sometimes Web sites will malfunction because a setting that is stored in a cookie is not working properly. In this case, though you...
Read more >How to Fix the Error "Cookies are Blocked or Not ... - YouTube
00:00 Intro ; 0:22 Refresh the Browser ; 0:32 Deactivate the Security & Cache Plugin Temporarily ; 01:24 Delete the Existing Browser Cookies...
Read more >How to Clear Browser Cookies to Resolve “Error 500
Please follow the instructions below to clear the cookies for your desired browser.
Read more >Fix "Aw, Snap!" page crashes and other page loading errors
Clear your cache and cookies · Tap More More and then Settings. · Tap Privacy and security and then Clear browsing data. ·...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

This is due to the cookies issue. Delete your cookies for localhost and it will work.
It’s trying to use the cookies set on a previous Masonite app or a laravel app.
I don’t think this is an issue anymore. Cannot replicate this on new installs anymore