Hello everyone, greetings. I would like to know ho...
# general
a
Hello everyone, greetings. I would like to know how I can access a media file via script by adding it to an external link. I'm loading it from a Suitelet using the public URL (without login), but I'm encountering this console error. scriptlet.nl:1 Access to XMLHttpRequest at 'https://7067352-sb1.app.netsuite.com/core/media/media.nl?id=15579&c=7067352_SB1&h=GyGcwcnLfnS9NWCfcjBji8Ttk2kbyhmRI7WnE&_xt=.cer' from origin 'https://7067352-sb1.extforms.netsuite.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
g
If you are using a suitelet why using an external link instead of loading the file using the N/file module directly on the suitelet?