Hi,
The product is elearning LMS - hosted on amazon ec2 server and the content (videos, scorm packages ) would be served from s3 server.
The link for LMS EC2 is say: myname.company-name.com The link for s3 bucket is say: s3-name.company-name.com
Scorm packages want to serve from s3 server but because of cross domain restrictions (browser) restricts the scorm APIs to communicate via HTML frame element. (even tried with iframe element)
Is there a way to configure s3 bucket name (cname) or cloudfront cname so that above purpose is fulfilled.
NOTE: Even if we attached s3 with cloudfront distribution say: s3 bucket name to cloudfront url (AWS format): .cloudfont.net and try to give cname to cloudfront distribution to same as ec2 instance name
However, ec2 files host server side scripting , development code and all content served via s3. So, cant redirect all the ec2 path to cloudfront cname or s3.
The content urls like s3-name.company-name.com only, should be redirected to s3 not all ec2 instance files to cloudfront cname. Is there a workaround with aws services configuration so that content is served from s3 and server files via ec2 addressing cross domain issue?
NOTE: apart from aws services configuration flxibility - the ec name and s3 bucket name format given above is to make fix (not changeable)
Many thanks!