Skip to content

Commit

Permalink
feat: add X-React-Native-Project-Root header
Browse files Browse the repository at this point in the history
  • Loading branch information
szymonrybczak committed Dec 12, 2023
1 parent 1fe40d5 commit de9b047
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/dev-server/src/createServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ export async function createServer(config: Server.Config) {

instance.addHook('onSend', async (request, reply, payload) => {
reply.header('X-Content-Type-Options', 'nosniff');
reply.header('X-React-Native-Project-Root', process.cwd());

const [pathname] = request.url.split('?');
if (pathname.endsWith('.map')) {
Expand Down

0 comments on commit de9b047

Please sign in to comment.