1
0
Fork 0
firefox/toolkit/content/tests/browser/browser_about_logging_server.sjs
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

14 lines
686 B
JavaScript

function handleRequest(request, response) {
// Allow cross-origin, so you can XHR to it!
response.setHeader("Access-Control-Allow-Origin", "*", false);
// Avoid confusing cache behaviors
response.setHeader("Cache-Control", "no-cache", false);
response.setHeader("Content-Type", "text/plain", false);
// A real JWT token as received by api.profiler.firefox.com
// The profile token contained inside this JWT is
// "24j1wmckznh8sj22zg1tsmg47dyfdtprj0g41s8".
response.write(
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwcm9maWxlVG9rZW4iOiIyNGoxd21ja3puaDhzajIyemcxdHNtZzQ3ZHlmZHRwcmowZzQxczgiLCJpYXQiOjE3NDM0MjM1NDV9.XDZtFK4WACo1x3px0zCRNL0gCjWBrYMqPGM-vMG11CE"
);
}