Jump to content

WHMCS - Invalid CSRF Token IFRAME


James G

Recommended Posts

Hi there,

This surely can be done somehow, surely.

I have WHMCS embbeded in an iFrame and it works perfectly untill I go to login,  then it gives me this error:  Invalid CSRF Token

I understand its a security issue or something but there must be a way around this, or something I can build to make this happen.

Im willing to pay someone to fix this for me permenantly.

 

Link to comment
Share on other sites

  • 11 months later...

I was able to fix it by setting the configuration.php :

if( ini_set('session.cookie_samesite', 'None') || session_set_cookie_params(['samesite' => 'None']) ) {
    session_name("WHMCS");
}

If you were for real and want to pay me my CashApp and Venmo are both NeoNos with their respective begining characters $/@.

Also make sur e your are on HTTPS on both frame and parent, also no weird/strict security policies should be set.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated