I am using WP Discourse for my wordpress website for SSO.
When I checked the option “Automatically create and login users.” When I log in into my site (with ajax call), my console shows this message: “Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource”.
Otherwise, when I unchecked the option “Automatically create and login users.”. It turns out that when I log in to the existing account on my website. When I open discourse, it can not auto login to my account in discourse eventhough my existing account is created in discourse database. It is required to click on “Login” button on discourse to login without entering my username and password.