Created
March 9, 2024 23:01
-
-
Save axilaris/8d29d5f576a7a55d785ba9850918ff41 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Network Logs: | |
start by entering http://localhost/ in browser | |
App.js:33 XXX /api/user csrfToken:1qJvVnbBRdkPgGBYd8KLK7wDg7KOE2QU | |
127.0.0.1:8000/api/user:1 | |
Failed to load resource: the server responded with a status of 403 (Forbidden) | |
register user | |
XXX /api/register csrfToken:1qJvVnbBRdkPgGBYd8KLK7wDg7KOE2QU | |
App.js:83 XXX /api/login after register csrfToken:1qJvVnbBRdkPgGBYd8KLK7wDg7KOE2QU | |
reload http://localhost/ in browser | |
XXX /api/user csrfToken:1qJvVnbBRdkPgGBYd8KLK7wDg7KOE2QU | |
App.js:37 GET http://127.0.0.1:8000/api/user 403 (Forbidden) | |
login user | |
after login | |
XXX /api/login csrfToken:1qJvVnbBRdkPgGBYd8KLK7wDg7KOE2QU | |
reload http://localhost/ in browser | |
App.js:33 XXX /api/user csrfToken:1qJvVnbBRdkPgGBYd8KLK7wDg7KOE2QU | |
App.js:37 GET http://127.0.0.1:8000/api/user 403 (Forbidden) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Request URL: | |
http://127.0.0.1:8000/api/user | |
Request Method: | |
GET | |
Status Code: | |
403 Forbidden | |
Remote Address: | |
127.0.0.1:8000 | |
Referrer Policy: | |
strict-origin-when-cross-origin | |
Access-Control-Allow-Credentials: | |
true | |
Access-Control-Allow-Origin: | |
http://localhost | |
Allow: | |
GET, HEAD, OPTIONS | |
Connection: | |
close | |
Content-Length: | |
58 | |
Content-Type: | |
application/json | |
Cross-Origin-Opener-Policy: | |
same-origin | |
Date: | |
Sat, 09 Mar 2024 22:54:34 GMT | |
Referrer-Policy: | |
same-origin | |
Server: | |
gunicorn | |
Vary: | |
Accept, Cookie, Origin | |
X-Content-Type-Options: | |
nosniff | |
X-Frame-Options: | |
DENY | |
Accept: | |
application/json, text/plain, */* | |
Accept-Encoding: | |
gzip, deflate, br | |
Accept-Language: | |
en-US,en;q=0.9 | |
Connection: | |
keep-alive | |
Host: | |
127.0.0.1:8000 | |
Origin: | |
http://localhost | |
Referer: | |
http://localhost/ | |
Sec-Ch-Ua: | |
"Not A(Brand";v="99", "Google Chrome";v="121", "Chromium";v="121" | |
Sec-Ch-Ua-Mobile: | |
?0 | |
Sec-Ch-Ua-Platform: | |
"macOS" | |
Sec-Fetch-Dest: | |
empty | |
Sec-Fetch-Mode: | |
cors | |
Sec-Fetch-Site: | |
cross-site | |
User-Agent: | |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Request URL: | |
http://127.0.0.1:8000/api/login | |
Request Method: | |
POST | |
Status Code: | |
200 OK | |
Remote Address: | |
127.0.0.1:8000 | |
Referrer Policy: | |
strict-origin-when-cross-origin | |
Access-Control-Allow-Credentials: | |
true | |
Access-Control-Allow-Origin: | |
http://localhost | |
Allow: | |
POST, OPTIONS | |
Connection: | |
close | |
Content-Length: | |
52 | |
Content-Type: | |
application/json | |
Cross-Origin-Opener-Policy: | |
same-origin | |
Date: | |
Sat, 09 Mar 2024 22:55:27 GMT | |
Referrer-Policy: | |
same-origin | |
Server: | |
gunicorn | |
Set-Cookie: | |
csrftoken=rsyLvHLLNAIumReGxLa63PONPM3klYIq; expires=Sat, 08 Mar 2025 22:55:27 GMT; Max-Age=31449600; Path=/; SameSite=Lax | |
Set-Cookie: | |
sessionid=iwimaxew48tmdptw3pdnfxzats4bt93b; expires=Sat, 23 Mar 2024 22:55:27 GMT; HttpOnly; Max-Age=1209600; Path=/; SameSite=Lax | |
Vary: | |
Accept, Cookie, Origin | |
X-Content-Type-Options: | |
nosniff | |
X-Frame-Options: | |
DENY | |
Accept: | |
application/json, text/plain, */* | |
Accept-Encoding: | |
gzip, deflate, br | |
Accept-Language: | |
en-US,en;q=0.9 | |
Connection: | |
keep-alive | |
Content-Length: | |
52 | |
Content-Type: | |
application/json | |
Host: | |
127.0.0.1:8000 | |
Origin: | |
http://localhost | |
Referer: | |
http://localhost/ | |
Sec-Ch-Ua: | |
"Not A(Brand";v="99", "Google Chrome";v="121", "Chromium";v="121" | |
Sec-Ch-Ua-Mobile: | |
?0 | |
Sec-Ch-Ua-Platform: | |
"macOS" | |
Sec-Fetch-Dest: | |
empty | |
Sec-Fetch-Mode: | |
cors | |
Sec-Fetch-Site: | |
cross-site | |
User-Agent: | |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SESSION_COOKIE_HTTPONLY = True # Default value is True, which is recommended | |
SESSION_COOKIE_SAMESITE = 'Lax' # Consider 'None' if strictly necessary and secure is set | |
SESSION_COOKIE_SECURE = False # Non-Production Port 80 | |
# SESSION_COOKIE_SECURE = True # Set to True if you are using HTTPS | |
CSRF_COOKIE_HTTPONLY = False # Should generally be False to allow JavaScript to read the value | |
CSRF_COOKIE_SECURE = False # Non-Production Port 80 | |
#CSRF_COOKIE_SECURE = True # Set to True if you are using HTTPS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
screenshots of clearing browser cache and network logs https://imgur.com/a/3Aly1In