I'm having an issue with my PHP script where it is not receiving necessary POST data that is sent out from another web domain that I'm using. Essentially, what is happening is that I run and load script A which then sends a payload of POST data to script B and launches it, but script B does not receive anything from script A.
The two scripts are on different domains (https://www.somethingA.com vs http://www.somethingB.com), so that is currently leading me to assume that it is a cross domain issue and is being blocked due to cross domain security restrictions. Is this the case here?
Thanks all for your help.
EDIT:
Here is my code:
Script A
<form method="post" id="myform" name="myform" action="http://www.somethingB.com" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="lis_result_sourcedid" value="9e45315-4566-351e">
<input type="hidden" name="lis_outcome_service_url" value="https://outcome-service-url.com">
<input type="hidden" name="lti_message_type" value="basic-lti-launch-request">
<input type="hidden" name="oauth_version" value="1.0">
<input type="hidden" name="oauth_nonce" value="974512358">
<input type="hidden" name="oauth_timestamp" value="1563511254">
<input type="hidden" name="oauth_signature_method" value="HMAC-SHA1">
<input type="hidden" name="oauth_consumer_key" value="print">
<input type="hidden" name="oauth_callback" value="about:blank">
<input type="hidden" name="oauth_signature" value="oaijAweiojawewfaw=">
<input type="submit" name="basiclti_submit" value="Launch Endpoint with BasicLTI Data">
</form>
</div>
<script>
document.getElementById('ltiLaunchFormSubmitArea').style.display = 'none';
nei = document.createElement('input');
nei.setAttribute('type', 'hidden');
nei.setAttribute('name', 'basiclti_submit');
nei.setAttribute('value', 'Launch Endpoint with BasicLTI Data');
document.getElementById('myform').appendChild(nei);
document.myform.submit();
</script>
</body>
</html>
...and Script B
print_r($_REQUEST);