Forum in maintenance, we will back soon 🙂
Notifications
Clear all
Search result for: cors
Page 2 / 2
Prev
# | Post Title | Result Info | Date | User | Forum |
RE: Youtube Title Generator from course gives error | 5 Relevance | 8 months ago | Husein Aboul Hasan | Building Online Tools | |
@appanna-m Did you add the cors headings? Please show us your php and javascript codes | |||||
RE: Basic PHP Snippet to Generate Titles | 5 Relevance | 10 months ago | Hasan Aboul Hasan | Building Online Tools | |
I tested it from my side on deepdiveopenai, this is a security feature in the browser causing this. please add the following lines to the top of the function and try again: // 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 | |||||
RE: Ajax error | 5 Relevance | 10 months ago | Hasan Aboul Hasan | Design and Templates | |
Your function is working perfectly; this is a security error from the browser. I tested it with another Client, and it worked: Attachment : Screenshot 2024-01-21 111337.png Please add the following codes in the return_fixed_titles function. // 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 | |||||
RE: Building Online Tool errors. | 5 Relevance | 5 months ago | Sidney Guerra | Building Online Tools | |
Hey! Here goes: function openai_generate_text_basic() { // 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 // Get the topic from the AJAX request $topic = $_POST['topic']; $usage = $_POST['usage']; $prompt = "As an expert copywriter specialized in hook generation ... | |||||
RE: Ajax error | 5 Relevance | 8 months ago | Dim2001 | Design and Templates | |
... { // 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 // Get the topic from the AJAX request $topic = $_POST['topic']; $usage = $_POST['usage']; $prompt = "As an expert copywriter specialized in hook generation, your task is to Generate 3 hooks for the following topic: {" . $topic . "} ... |
Page 2 / 2
Prev
Forum Information
Our newest member: Vishal
Latest Post: User role assignment.
Forum Icons:
Forum contains no unread posts
Forum contains unread posts
Topic Icons:
Not Replied
Replied
Active
Hot
Sticky
Unapproved
Solved
Private
Closed