Symptom
- When launching AICC content or SCORM 1.2 (which uses the PwsAICC communications) content you may see some resources fail to load.
- When tracing you receive message such as "... has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource." and "Failed to load resource: net::ERR_FAILED".
Environment
SAP SuccessFactors Learning
Reproducing the Issue
Launch some AICC or SCORM 1.2 course imported to iContent which is loading some resource from an external third party server.
Cause
Learning servers plateau.com will reject third party resources with AICC or SCORM 1.2 content when it is not using https or is not publicly available (does not require authentication).
Resolution
Go to the Learning admin side > System Admin > Configuration > System Configuration > LMS_ ADMIN > And utilize the following settings:
# Access-Control-Allow-Origin CORS header
for
the AICC endpoint PwsAicc
# Enable it to allow AICC content hosted on a different domain (cross-domain content) to communicate with LMS server via Ajax, i.e XMLHttpRequest
aiccAccessControlAllowOriginEnabled=true
#specify your content server domain instead of *
for
better security.
aiccAccessControlAllowOriginHeader=*
Note if resources are not publicly accessible, utilize cross-domain solution instead, see See Also section below.
See Also
Keywords
SAP, SF, success, factors, LMS, learning, CORS, Access-Control-Allow-Origin, Access, Control, Allow, Origin, cross-origin, cross, content, launch, load , KBA , LOD-SF-LMS-CNT , Content , LOD-SF-LMS , Learning Management System , LOD-SF-LMS-ADM , System Admin, Global Variables, References , Problem