Skip to content

Commit

Permalink
fix(backend): allows only GET method
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniomuso committed Jan 19, 2023
1 parent 63b3acc commit e3b314f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gitlab-backend/src/service/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export async function createRouter(
const apiUrl = new URL(apiBaseUrl);
router.use(
`/${i}`,
createProxyMiddleware({
createProxyMiddleware((_pathname, req) => req.method === 'GET', {
target: apiUrl.origin,
changeOrigin: true,
headers: {
Expand Down

0 comments on commit e3b314f

Please sign in to comment.