enableCORS
Set this option to true to enable CORS for all routes in the Profound.js server.
Alternatively, set this option to an object representing CORS options (see https://www.npmjs.com/package/cors for more details).
Example 1
enableCORS: true
Example 2
enableCORS: {
origin: 'https://openai.com',
methods: ['GET', 'POST'],
allowedHeaders: ['Content-Type', 'Authorization']
}
Click here for information on how to modify this setting.
Some documentation pages have recently moved to a new section: Profound AppDev. If you are having trouble finding specific pages, try the documentation search capability or reach out to our Support team!