Error with external contactform php

7 replies · opened Oct 9, 2017

SsuppenhuhnOct 9, 2017

Hi,
i have a contact form using an external php-file on this page:

http://kryptofactory.com/

But after submitting the form i got an error that says there is a missing CORS-Header for 'Access-Control-Allow-Origin'.
Any idea how to fix this?

Thanks in advance an have a nice start into the week :)

EeltuctucOct 9, 2017

Hello,

I have the same problem. I use Formtools on an external domain.

Thanks for your help :-)

SSemicolon WebSTAFFOct 11, 2017

Hello,

AJAX does not work with external URLs because the file access depends on the File Servers. You can consider using the following code in your .htaccess File:


    Header set Access-Control-Allow-Origin "*"

This should definitely work fine. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

SsuppenhuhnOct 12, 2017

Thank you for the response!

Created the .htaccess file with that code but it still won't work.

Do i have to do other settings to make it work?

SsuppenhuhnOct 17, 2017

Any ideas?

SSemicolon WebSTAFFOct 18, 2017

Hello,

Thanks for your Patience!

Unfortunately, as we mentioned earlier the AJAX does not work properly for External URLs and the file access also depends on the File Servers so the Server at https://click.isolsend.com/subscribe needs to able to support External AJAX requests from your Servers. So this does not work because they are blocking it.

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

SsuppenhuhnOct 23, 2017

Ok - thank you!
So - i'm not able to make this server to unblock my request. Is there another method/way than AJAX to call this external script?

SSemicolon WebSTAFFOct 29, 2017

Hello,

You can definitely make this work, however without the AJAX Functionality. You can simply add the .customjs Class to the .contact-widget Element to process the Form without AJAX.

This will definitely work fine. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard