Fix various 403 response code errors.
Credit to @mcsnetworks aka Dockter.