Skip to content

Commit f3860be

Browse files
authored
Merge pull request #218 from DataDog/rum-profiling
Rum profiling nginx fix
2 parents 50d1cfb + bacc175 commit f3860be

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

web-backend/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ app.use('/api/app/proxy', requireAuth, async (req, res) => {
364364
'Authorization': `Bearer ${req.session.tokens.access_token}`,
365365
'Content-Type': req.headers['content-type'] || 'application/json',
366366
'Accept': req.headers.accept || 'application/json',
367-
'Document Policy': `js-profiling`
367+
'Document Policy': 'js-profiling'
368368
},
369369
body: req.method !== 'GET' && req.method !== 'HEAD' ? JSON.stringify(req.body) : undefined
370370
})

web-frontend/nginx.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ server {
77
# SPA fallback - return index.html for any unmatched routes
88
location / {
99
try_files $uri $uri/ /index.html;
10+
add_header Document-Policy "js-profiling";
1011
}
1112

1213
# Cache static assets

0 commit comments

Comments
 (0)