Where in the PCP file to place this command?
header ('access-control-allow-origin: *');
Need to contact PCP to contact over $ .post
Answer 1, Authority 100%
before the first contentual content. And where exactly depends on your architecture, framework, etc.
You can still use check:
if (! Headers_sent ()) {
Header ('Access-Control-Allow-Origin: *');
} else {
// error processing or notification developers
}