Access-Control-Allow-Origin to subscribe from another domain

Hello !

I have installed PHPList on my company website (www.mycompany.com) and I would like to put a subscribe form on my website “www.myartist.com”. So I have to authorize the domain “myartist.com” to post using www.mycompany.com?p=subscribe script.

I found the line
header('Access-Control-Allow-Origin: '.ACCESS_CONTROL_ALLOW_ORIGIN);
in index.php but I didn’t found where I could modify this to authorize “myartist.com” to subscribe users…

Could you help me ?

Trucmuche

You will need to add a define of ACCESS_CONTROL_ALLOW_ORIGIN to your config.php file.
See the documentation on the config file https://resources.phplist.com/system/config

2 Likes

Thanks ! I did it :slight_smile:

1 Like