Load WordPress website inside Suite CRM wrapper

Hi all!

I have a staff member only WordPress website, where staff members can log in and access resources designed to help them do their job.

This WordPress website is password protected using the standard WordPress access system.

I’m trying to load that website inside the suite CRM rapper using a dashboard tab.

I am able to successfully get the login page to load in the wrapper, but when you try to authenticate the user in WordPress I get an error that tells me cookies are not enabled for that site.

I’ve tried a bunch of different header manipulations strategies to bypass this issue, but I’ve come up short so far.

I have a sense that it’s a CORS or cross site scripting problem, but I’m not quite sure what steps to take next.

Does anyone have any experience with this, or might be able to point me in the right direction?

As an additional possible feature, I’m considering building a mechanism that auto logs the staff member into their WordPress site, but I haven’t even looked at that yet, since I can’t get the page to load after authentication anyway.

Thanks all!!!

I don’t think that’s on SuiteCRM. I’ll recommend you to check on the WP forums

Yep…thanks for the point in the right direction.
I had to manage the X-frame options headers the site was setting manually.
Got it solved.

Thanks!

I’m glad you got it solved!

I wonder if you could give more details, to help others coming here in the future? A short explanation of what you did, or a link to a solution somewhere?

Thanks!

Good Idea…will update the solution.
Thanks!

1 Like

So the site that I wanted to load in the iFrame (Dashlet) needs to send an ā€˜X-Frame-Options’ header, set to ā€œNoneā€ in order for the SuiteCRM iFrame to load it successfully.

In my case, there was ā€œnoā€ header being sent, therefore Chrome defaults this ā€˜X-Frame-Options’ value to ā€œSAMEORIGINā€ - which prevents the site from loading in the iframe.

I was able to set this header value by editing the Functions.php file.
I’m not sure I can recommend my solution as it may open some security issues, but in my environment, there is no real risk.

Hope it’s helpful.

1 Like

Nice that you got it solved.
There are some plugins built that you might be able to use to (WP vs. SuiteCRM):
https://wordpress.org/plugins/search/suitecrm/

Note: I haven’t tested them myself. I only know that they exist on WP’s plugin directory…

Kind regards
AngryWarrior