The code works on my network, but not on the university’s network /u/MasterTj123 Python Education

I have a Django server with DRF and custom JWT cookies through middleware. The frontend is built in Next.js and consumes the server routes as an API. Everything works on my machine and network, as well as on some friends’ machines who are involved in the project, with the cookies being created and saved correctly. The problem is that this doesn’t happen on the university’s network, even though it’s the same machine (my laptop) and the same browser. At the university, the cookies are not saved, and the error “Cookie ‘access_token’ has been rejected because it is foreign and does not have the ‘Partitioned’ attribute” appears. Both codes are on GitHub, and the only thing hosted in the cloud is the database. I am aware of the cookie creation and saving configurations, as well as the CORS policies. I can’t figure out where I’m going wrong… Can anyone help me? I can provide the links if possible! Thanks in advance!

submitted by /u/MasterTj123
[link] [comments]

​r/learnpython I have a Django server with DRF and custom JWT cookies through middleware. The frontend is built in Next.js and consumes the server routes as an API. Everything works on my machine and network, as well as on some friends’ machines who are involved in the project, with the cookies being created and saved correctly. The problem is that this doesn’t happen on the university’s network, even though it’s the same machine (my laptop) and the same browser. At the university, the cookies are not saved, and the error “Cookie ‘access_token’ has been rejected because it is foreign and does not have the ‘Partitioned’ attribute” appears. Both codes are on GitHub, and the only thing hosted in the cloud is the database. I am aware of the cookie creation and saving configurations, as well as the CORS policies. I can’t figure out where I’m going wrong… Can anyone help me? I can provide the links if possible! Thanks in advance! submitted by /u/MasterTj123 [link] [comments] 

I have a Django server with DRF and custom JWT cookies through middleware. The frontend is built in Next.js and consumes the server routes as an API. Everything works on my machine and network, as well as on some friends’ machines who are involved in the project, with the cookies being created and saved correctly. The problem is that this doesn’t happen on the university’s network, even though it’s the same machine (my laptop) and the same browser. At the university, the cookies are not saved, and the error “Cookie ‘access_token’ has been rejected because it is foreign and does not have the ‘Partitioned’ attribute” appears. Both codes are on GitHub, and the only thing hosted in the cloud is the database. I am aware of the cookie creation and saving configurations, as well as the CORS policies. I can’t figure out where I’m going wrong… Can anyone help me? I can provide the links if possible! Thanks in advance!

submitted by /u/MasterTj123
[link] [comments] 

Leave a Reply

Your email address will not be published. Required fields are marked *