You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*[Syntax for adding HTTP response headers on different web servers](#syntax-for-adding-http-response-headers-on-different-web-servers)
18
+
*[Syntax for adding HTTP response headers on different web or application servers](#syntax-for-adding-http-response-headers-on-different-web-or-application-servers)
19
19
20
20
## Convert a Permissions-Policy back to Feature-Policy
21
21
@@ -144,44 +144,23 @@ $ venom run --var="target_site=https://mozilla.org" --var="logout_url=/logout" t
144
144
[info] The X-XSS-Protection header has been deprecated by modern browsers and its use can introduce additional security issues on the client side.
145
145
```
146
146
147
-
## Syntax for adding HTTP response headers on different web servers
147
+
## Syntax for adding HTTP response headers on different web or application servers
148
148
149
-
### Apache
149
+
Use the following steps to leverage an "LLM as a Service" (LLMaaS) to generate corresponding configuration code snippet for the wanted web or application server:
150
150
151
-
π» Directive:
151
+
1. Download this [file](https://owasp.org/www-project-secure-headers/ci/headers_add.json).
152
+
2. Join the json file above to the chat.
153
+
3. Use this user prompt in the chat to ask the generation:
152
154
153
-
`Header always set [HEADER_NAME] [PROPOSED_VALUE]`
Generate a configuration code snippet to set HTTP response security headers for the '[TARGET_APPLICATION_OR_WEB_SERVER_NAME]'. Use only the information from the json file attached. Only provide the configuration code snippet. The configuration must overwrite any existing value for an HTTP response security header present into the json file attached.
157
+
```
184
158
185
-
π References:
159
+
π¬ The user prompt proposed was tested against [Google GEMINI](https://gemini.google.com/) model **2.5 Flash** and the generated configuration code was submitted to [OpenAI ChatGPT](https://chatgpt.com/) model **ChatGPT** to indicates if it was valid for the intended web or application server. The following value for the `[TARGET_APPLICATION_OR_WEB_SERVER_NAME]` placeholder were used:
0 commit comments