fix: added access-control-allow-origin header to auth routes (#299) #1385
Annotations
2 errors and 13 warnings
run-lint:
backend/typescript/rest/authRoutes.ts#L29
Replace `'Access-Control-Allow-Origin',·'*'` with `"Access-Control-Allow-Origin",·"*"`
|
run-lint
Process completed with exit code 1.
|
run-lint
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
run-lint:
backend/typescript/rest/camperRoutes.ts#L18
'RefundDTO' is defined but never used
|
run-lint:
backend/typescript/rest/camperRoutes.ts#L156
'paymentIntentId' is assigned a value but never used
|
run-lint:
frontend/src/APIClients/AuthAPIClient.ts#L14
Replace `⏎······"/auth/login",` with `"/auth/login",·{`
|
run-lint:
frontend/src/APIClients/AuthAPIClient.ts#L16
Replace `{·email,·password·}` with `email,⏎······password`
|
|
run-lint:
frontend/src/APIClients/AuthAPIClient.ts#L29
Replace `⏎······"/auth/login",⏎······{·idToken·},⏎····` with `"/auth/login",·{·idToken·}`
|
run-lint:
frontend/src/APIClients/AuthAPIClient.ts#L65
Replace `⏎······"/auth/register",` with `"/auth/register",·{`
|
run-lint:
frontend/src/APIClients/AuthAPIClient.ts#L67
Replace `{·firstName,·lastName,·email,·password·}` with `firstName,⏎······lastName,⏎······email,⏎······password`
|
|
run-lint:
frontend/src/APIClients/AuthAPIClient.ts#L96
Replace `⏎······"/auth/refresh",⏎······{},⏎····` with `"/auth/refresh",·{}`
|
|
run-lint:
frontend/src/APIClients/CamperAPIClient.ts#L167
Replace `⏎······`/campers/cancel-registration`,⏎······body,⏎·····` with ``/campers/cancel-registration`,·body,`
|