I am referring to below change --- Changes to url....
# suitecommerce
l
I am referring to below change --- Changes to url.resolveScript(options) and https.requestSuitelet(options) Starting July 30, 2024, returning external URLs with
url.resolveScript(options)
will only be allowed for authenticated sessions. Scripts using
url.resolveScript(options)
with the
returnExternalUrl
parameter set to true will no longer work in untrusted contexts. To avoid errors, you must review scripts that use the url.resolveScript(options) method with the
returnExternalUrl
parameter set to true and ensure that this setting is used only in a trusted context. Effective June 13, 2024,
https.requestSuitelet(options)
will be supported for internal URLs in trusted contexts. This will become the default behavior, without the need of setting the option.external parameter. On July 30, 2024, use of
option.external=true
will stop working, and
https.requestSuitelet(options)
will only work for internal Suitelets. This change also applies to the promise version:
https.requestSuitelet.promise(options)
. ---
e
Hey @Lucas this is good information. Thanks for sharing. I do not remember calling a restlet from a client script, I would imagine in the worst case, it will not be as easy as calling a suitelet, you might need to implement oAuth 1.0 or 2.0 and use a library to implement authentication.
l
Yes...