Skip to content

Commit

Permalink
Merge pull request #166 from righettod/master
Browse files Browse the repository at this point in the history
Add hints for API
  • Loading branch information
riramar committed Feb 24, 2024
2 parents d0cf09b + c84ac19 commit ae530c6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tab_bestpractices.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ The following section proposes a configuration for the [actively supported and w

⚠️ The `Pragma` header is only specified for backwards compatibility with the HTTP/1.0 caches.

📖 The headers proposed below can be applied both in the context of a *classic web application* and in that of a *web API*.

💡 Content of the table below is also provided, as JSON, via this [file](ci/headers_add.json) (automatically updated).

<!-- HEADERS_ADD_TABLE_START -->
Expand Down Expand Up @@ -150,7 +152,7 @@ Content-Disposition: attachment; filename="myfile.html"

> 📖 An excellent tutorial about [Cross-Origin Resource Sharing](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) (called **CORS**) is provided on the [Mozilla MDN](https://developer.mozilla.org/en-US/). In addition, [Julien Cretel](https://jub0bs.com/about/) provided a great [blog post](https://jub0bs.com/posts/2023-02-08-fearless-cors/) about CORS pitfalls.
This section proposes an approach to help preventing [CORS misconfiguration issues](https://portswigger.net/research/exploiting-cors-misconfigurations-for-bitcoins-and-bounties) using a simple idea: _Provide the collection of [CORS related HTTP response headers](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#the_http_response_headers) to use according to different contexts._
This section proposes an approach to help preventing [CORS misconfiguration issues](https://portswigger.net/research/exploiting-cors-misconfigurations-for-bitcoins-and-bounties) using a simple idea: *Provide the collection of [CORS related HTTP response headers](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#the_http_response_headers) to use according to different contexts.*

### Key points to consider

Expand Down

0 comments on commit ae530c6

Please sign in to comment.