How to respond to a JSONP request

64 Views Asked by At

I'm trying to setup SSO for a vanilla forum, but I'm confused about the JSONP part. I've tried searching here (StackOverflow) and I've been looking at the vanilla SSO docs, but I still don't understand it.

1

There are 1 best solutions below

0
On BEST ANSWER

Got the answer somewhere else.

<?php
echo $_GET['callback'] . "({ \"abc\" : \"xyz\" })";
?>