Forum in maintenance, we will back soon 🙂
Hook generator trouble...
I followed all the step, in the video. Even I took your code.
I verified my PHP function to connect to OpenAI and is working!!
But when I got to java script I GOT STUCK
I've added: "
// Add CORS headers header('Access-Control-Allow-Origin: *'); // Allows all origins header('Access-Control-Allow-Methods: GET, POST, OPTIONS'); // Specifies the allowed methods header('Access-Control-Allow-Headers: Content-Type, Authorization'); // Specifies the allowed headers
"
"// Add CORS headers
header('Access-Control-Allow-Origin: *'); // Allows all origins
header('Access-Control-Allow-Methods: GET, POST, OPTIONS'); // Specifies the allowed methods
header('Access-Control-Allow-Headers: Content-Type, Authorization'); // Specifies the allowed headers "
to my function in PHP code snippet and still not working...
My web page URL is: https://claudiuudroiu.ro/hook-generator/
I got headache...
please help HASAN!
THANK YOU!!
Your script.js file isn't being located in the file system. You should move it to the wp-includes/js/ directory.
Regards,
Earnie Boyd, CEO
Seasoned Solutions Advisor LLC
Schedule 1-on-1 help
Join me on Slack
Did you add the JS Snippet with the HTML and CSS?
and make sure to change the URL to your site in the snippet