title: What's an Alternative/Fix to $.post for Cross Domain for Unknown Amount of Domains
body: <p>This could be a very amateur/bad approach to what really needs to be done, but I'm currently building a platform that can be embedded on clients' websites with a script tag. That script then allows a user to input some information and send it off to an email. One of the options on there is to see a certain person's social media. What I want to do is log the social button clicks to a MySQL database.</p>
  
  <p>Currently my code for the social click is a <code>$.post</code> to <code>b.domain.com</code>. I'm getting the error: <code>XMLHttpRequest cannot load due to access control checks.</code> This error goes away when I manually add each domain to the allow origin in .htaccess, but this would be very frustrating to have to add this for every domain a client wants to embed the script on. <code>*</code> can't be used because of <code>Allow Credentials</code> so I'm kind of stuck in my limited knowledge on this topic.</p>
  
  <p>Any pointing in the right direction would be appreciated, and apologies if the question wasn't worded properly/with enough information.</p>