Headers Properties

Description Define HTTP headers to add to the client response.
Synopsis headers: { "Header-Key": "Header-Value", ... }
Example headers: { "Content-Security-Policy": "default-src 'self'", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "CrossOrigin": "origin=* credentials=yes headers=X-CORS-HEADER age=3000", },
Notes

The headers property defines one or more HTTP headers that are added to the client response. You should only define unique headers that are not already added by action routines or by the Ioto web server core. Otherwise, your response will have duplicate headers.

© Embedthis Software. All rights reserved.