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

Ccross-origin object Erro mailChimp #8

Open
jonatasemidio opened this issue Dec 6, 2018 · 8 comments
Open

Ccross-origin object Erro mailChimp #8

jonatasemidio opened this issue Dec 6, 2018 · 8 comments

Comments

@jonatasemidio
Copy link

I'm not able to receive the response of my subscription (mailship form).
Printed Error:
[Show/hide message details.] SecurityError: Permission denied to access property "host" on cross-origin object

I am running my page on Netlify system, and I have checked that subscription is working, the error seams to be on the callback.

Do you know if I need to do something different?

@thomasvaeth
Copy link
Member

Can you paste in the URL you put into the _config.yml?

@jonatasemidio
Copy link
Author

@thomasvaeth
Copy link
Member

Hm that looks right. https://github.com/samesies/barber-jekyll/blob/master/_includes/subscribe-form.html just takes that and adds a callback.

And you have the right mailchimp_input for your form?

@jonatasemidio
Copy link
Author

For subcription i've just updated the mailchimp parameters:
mailchimp_action: https://overhackingview.us6.list-manage.com/subscribe/post-json?u=0c80b66360862ed72c16dcb96&id=76324a0c67
mailchimp_input: b_0c80b66360862ed72c16dcb96_76324a0c67

Do I need to do something else?

@thomasvaeth
Copy link
Member

That's all I have. Can you try putting in what comes with the theme and running it? See if you're getting the same error. Because mine is still working.

@qwizztest
Copy link

Ran into the same issue.. Did you ever resolve? It's something with the callback; the subscription actually goes through. My band-aid was to modify the error message, but now my users won't know if there is an actual problem upon subscribing .

@ucpete
Copy link

ucpete commented Jun 20, 2019

I had the exact same issue using Mailchimp and Netlify. Like @qwizztest, I was getting an error message each time, but the subscription was going through.

I just figured out the issue – the Mailchimp-provided URL looked like this:
http://prefix.location.list-manage.com/subscribe/post?u=<user>&id=<id>

But it needs to point to post-json, not post - e.g.
http://prefix.location.list-manage.com/subscribe/post-json?u=<user>&id=<id>

Now it works.

@thomasvaeth
Copy link
Member

thomasvaeth commented Jun 20, 2019

@ucpete The example shows to use post-json, so that's probably why I never got this issue. I will update the README in the next few days. I will also check if replace works in Jekyll.

But the person filing the issue said they were using post-json, so I don't know if it will completely solve this. My only other guess if you have to verify your Mailchimp account or something.

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