Skip to content

Commit dc42165

Browse files
authored
Clarify that POST requests can work using the CORS feature (#208)
1 parent 7edfce2 commit dc42165

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/3.x/tracking-javascript.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ Piwik uses first party cookies to keep track of some user information over time.
112112
### Advanced uses
113113

114114
* `addListener( element )` - Add click listener to a specific link element. When clicked, Piwik will log the click automatically.
115-
* `setRequestMethod( method )` - Set the request method to either "GET" or "POST". (The default is "GET".) To use the POST request method, the Piwik host must be the same as the tracked website host (Piwik installed in the same domain as your tracked website).
115+
* `setRequestMethod( method )` - Set the request method to either "GET" or "POST". (The default is "GET".) To use the POST request method, either 1) the Piwik host is the same as the tracked website host (Piwik installed in the same domain as your tracked website), or 2) if Piwik is not installed on the same host as your website, you need to [enable CORS (Cross domain requests) as explained in this FAQ](https://piwik.org/faq/how-to/faq_18694/).
116116
* `setCustomRequestProcessing( function )` - Set a function that will process the request content. The function will be called once the request (query parameters string) has been prepared, and before the request content is sent.
117117
* `setRequestContentType( contentType )` - Set request Content-Type header value. Applicable when "POST" request method is used via `setRequestMethod`.
118118

0 commit comments

Comments
 (0)