Posts: 5
Threads: 2
Joined: May 2024
Hi,
I just install the script and configure it and at the 1st test i stay block at "Please wait..." after clicking on "Add comment" and same problem when i click on "Preview".
Any idea to fix it?
Posts: 2,894
Threads: 59
Joined: Jun 2010
Hello, I'd need a link to your page so I can figure out what's happening.
Have
you completed
the interview?
Posts: 5
Threads: 2
Joined: May 2024
(25-May-2024, 07:19 PM)Steven Wrote: Hello, I'd need a link to your page so I can figure out what's happening.
hi, i find why i got the problem.
it's because i got a cors error because i installed commentics for where my website will be and not where he is actually (a sub-domain) because i rebuilt it, so in theory when i'll finish to rebuild and put all in my main domain all will work correctly. i hope because i can't test actually.
Code:
Access to fetch at 'https://breat.fr/comments/frontend/index.php?route=main/form/submit' from origin 'https://test.breat.fr' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
i tried add header in my .htaccess but didn't works and same by adding a line in the php integration code to add crossorigin="anonymous".
Posts: 5
Threads: 2
Joined: May 2024
(25-May-2024, 07:19 PM)Steven Wrote: Hello, I'd need a link to your page so I can figure out what's happening.
all works well on my primary domain so it's good.