Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
712:collector_data_rest_api [2026/02/18 09:31] – Documented the best way to test the configuration Deutschmann, Niklas712:collector_data_rest_api [2026/02/18 09:33] (current) – [Cross-Origin Resource Sharing] Deutschmann, Niklas
Line 299: Line 299:
 </code> </code>
  
-==== Testing your configuration ====+**Testing your configuration:** 
 The best way to test the configuration: The best way to test the configuration:
   * Go to the website that should be the origin of the API requests (https://stages-api-client1.example.com in the example above)   * Go to the website that should be the origin of the API requests (https://stages-api-client1.example.com in the example above)
Line 306: Line 307:
  
 <code> <code>
-fetch("https://<Stages Server URL>/api/1/collectordata/<Record Key>", { headers: { "Authorization": "Bearer <API Token>" }}).then(r => r.json()).then(console.log);+fetch("https://<Stages Server URL>/stages/api/1/collectordata/<Record Key>", { headers: { "Authorization": "Bearer <API Token>" }}).then(r => r.json()).then(console.log);
 </code> </code>