403 Forbidden Error on "view live" in tutor

While creating a course on tutor, when I click view live, a blank white screen appears, and while inspecting, it shows a 403 forbidden error. On searching about the error, I found that it may be an error in the.htaccess file. Where do I find the file, and what changes should I make? Kindly help me with this.

I also tried to edit the env/apps/openedx/settings/lms/production.py from SESSION_COOKIE_SAMESITE = “None” to DCS_SESSION_COOKIE_SAMESITE = “None” using sudo nano and vim commands but the changes are not saved and if they are saved then after tutor config save, it goes back to SESSION_COOKIE_SAMESITE = “None”