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.