I've created a couple of webresources:
- app.html
- app.js
- schedule.module.js (ES6)
In app.js, the very first line is import { 'Schedule' } from 'schedule.module.js', I get this error:
Access to script at 'login.microsoftonline.com/.../authorize...' (redirected from 'demo.crm4.dynamics.com/.../hef_app.js') from origin 'https://demo.crm4.dynamics.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
I'm really unsure on how to link schedule.module.js. Do I simply use its name, or full path as you get them when you create the webresource (I tried both doh)? Is there limitation in Dynamics on this, as long as my browser supports ES6 then it should be all good?
*This post is locked for comments