https://supertokens.com/ logo
#support-questions
Title
# support-questions
r

rp

05/11/2021, 12:18 PM
@User Can you please do the following and then try to use the iframe and see if it works: - Go to supertokens-website folder inside node_modules - In there, open lib > build > fetch.js - For each of the following lines, add
samesite=none
at the end of the string (before the closing "). For example, if a line is
ID_REFRESH_TOKEN_NAME + "=" + cookieVal + ";expires=" + expires + ";path=/";
, then change it to
ID_REFRESH_TOKEN_NAME + "=" + cookieVal + ";expires=" + expires + ";path=/;samesite=none";
Lines: - https://github.com/supertokens/supertokens-website/blob/master/lib/build/fetch.js#L1138 - https://github.com/supertokens/supertokens-website/blob/master/lib/build/fetch.js#L1141 - https://github.com/supertokens/supertokens-website/blob/master/lib/build/fetch.js#L1221 - https://github.com/supertokens/supertokens-website/blob/master/lib/build/fetch.js#L1224 - https://github.com/supertokens/supertokens-website/blob/master/lib/build/fetch.js#L1318 - https://github.com/supertokens/supertokens-website/blob/master/lib/build/fetch.js#L1321