I came across the same problem as this with Safari rejecting the cookies and keep reloading the facebook iframe:
facebook app iframe login issue on safari
The solution in PHP should be something like this:
<?php
header('P3P: CP="CURa ADMa DEVa PSAo PSDo OUR BUS UNI PUR INT DEM STA PRE COM NAV OTC NOI DSP COR"')
?>
I don't really understand PHP, how do I achieve this in Python/Flask? Do I have somehow to set this in every function in the view code or in base.html, which all other templates derive from?
Many Thanks,