Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Followed your How to but still have Issues. #4

Open
sebgri opened this issue May 15, 2020 · 3 comments
Open

Followed your How to but still have Issues. #4

sebgri opened this issue May 15, 2020 · 3 comments

Comments

@sebgri
Copy link

sebgri commented May 15, 2020

Hi,

I followed your hoe to in the video. Elementor is installed, Your Plugin is installed, altered the nginx config w your code but still after switching it keeps spinning the elementor pamel on the left side and says connection lost.

I refreshed the cache. but nothing changes. The console still says that there are issues.

What is needed that you may can help me?

Thanks,

Seb

@nicmare
Copy link

nicmare commented Oct 9, 2020

same problem here

@reatlat
Copy link
Owner

reatlat commented Oct 9, 2020

@nicmare take a look here
1e9c22f
try to use last version from this repo

There are filters for allowed_http_origins and add_allowed_origins.

You can use them to set the proper Access-Control-Allow-Origin header in the response to your AJAX call.

Add this to your theme's functions.php file:

add_filter('allowed_http_origins', 'add_allowed_origins');

function add_allowed_origins($origins) {
    $origins[] = 'https://www.yourdomain.com';
    return $origins;
}

@clonecorp
Copy link

clonecorp commented Aug 24, 2021

@nicmare take a look here
1e9c22f
try to use last version from this repo

There are filters for allowed_http_origins and add_allowed_origins.

You can use them to set the proper Access-Control-Allow-Origin header in the response to your AJAX call.

Add this to your theme's functions.php file:

add_filter('allowed_http_origins', 'add_allowed_origins');

function add_allowed_origins($origins) {
    $origins[] = 'https://www.yourdomain.com';
    return $origins;
}

Hello,

I have tried adding the code to the function file but I still get admin-ajax.php results in a 400 when editing the page with Elementor and because of that the left panel from Elementor loads forever.

The pages I am trying to edit are on subdomains fr.mydomain.com and ru.mydomain.com

Can you help?

Thank you,
Jordan.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants