1

How do you set up a cookie free subdomain on Flask. My website already has subdomains, so setting that up is not a problem. But I'm not sure how to (a) request files across all subdomains (and the main domain) from one specific subdomain and (b) make sure that the designated subdomain does not send cookies with static files.

Any help would be appreciated!

2
  • 1
    you would have to make sure whenever you set cookie on any of the other domains and subdomains you do that using fully qualified domain name, check out this answer stackoverflow.com/questions/18492576/… Dec 14, 2021 at 7:46
  • 1
    If that sounds like too much work and monitoring you should look for a CDN Dec 14, 2021 at 7:47

1 Answer 1

1

In case anyone reads this: I am going to submit an answer to my own question based on a comment above.

I found that the easiest way, by far, is using a CDN. I used keycdn. It automatically removes unnecessary cookies and reduces the amount of data when fetching static files.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.