Validating Twitter Card via AJAX request?


I was wondering if it was possible to validate your Twitter card via an AJAX request? I noticed the Twitter Card validator simply makes a POST request via a form and passes the url and platform. Is it possible to do this ourselves? I received a 403 error due to content-security-policy (makes sense) but I’m hoping my site can pretty much dynamically generate Twitter Cards and then instantly validate them.

Not sure if there is a way to do this via API. Any advice would be appreciated.