How does SS1 and SS2 differ in regards to a suitel...
# suitescript
e
How does SS1 and SS2 differ in regards to a suitelet being called in an iframe in a Site Builder page? In SS1 the iframe renders, in SS2 it returns 'You must log in to access this page". Both suitelets have Available without login unchecked.
n
I would assume that they should work in similar manner.
j
Call me crazy... but does the Suitlet's script file also have 'Available without Login' checked?
e
Checked or unchecked, it made no difference. The SL loads up a html file from the cabinet and that is displayed in an inline html field, SS1 works, SS2 gives the login
j
And I'm assuming the HTML file also has 'Available without Login' checked?
e
I tried that as well. With SS1 it's not required
I just decided to use the SS1 SL
j
Hmmm, yeah I'm stumped. And you're using the external URL of the suitelet? (Sorry for all of the 'is your computer turned on?' questions!)
😆 1
e
All good, I appreciate it. In SS2 I tried both, but in SS1 I don't think one can make the distinction
j
Yeah, the External URL comes off the script deployment record when you choose 'available without login' there. Another thought... do you have any role/employee restrictions on the script deployment audience tab?
e
No, All Roles is checked. I did get it to load with some set of settings, however, the client scripts call a restlet (same account) and I was getting the Invalid Login Attempt with SS2. With SS1, no issues. Just, odd
I don't like using SS1, but for the few lines of code, set it and forget it lol
j
Yeah, is odd. Kinda would expect that in 1.0 you'd see the same issues... I always understood iFrames to be their "own world". So unless you're somehow passing a session cookie to the iFrame I'm surprised the client script in 1.0 recognizes the login. So yeah... set it and forget it. 😄
e
The real pain is using Site Builder lol
j
Amen to that! But I'm not sure SuiteCommerce Standard or Advanced are much better... problems of their own kinds!
👍 1