Skip to content

Commit 22773dd

Browse files
JeaNileRock-520
authored andcommitted
fix: remove Access-Control-Allow-Credentials header for CORS security compliance (#22)
1 parent 65e90b7 commit 22773dd

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

backend/magic-service/app/Infrastructure/Util/Middleware/CorsMiddleware.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface
2121
$response = Context::get(ResponseInterface::class);
2222
$response = $response
2323
->withHeader('Access-Control-Allow-Origin', '*')
24-
->withHeader('Access-Control-Allow-Credentials', 'true')
2524
->withHeader('Access-Control-Allow-Headers', 'DNT,Keep-Alive,User-Agent,Cache-Control,Content-Type,Authorization,application-code,organization-code,x-forwarded-user,token,request-id,Language,api-key')
2625
->withHeader('Access-Control-Allow-Methods', '*')
2726
->withHeader('Request-Id', CoContext::getOrSetRequestId());

backend/super-magic/app/api/middleware/options_middleware.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ async def dispatch(self, request: Request, call_next):
3535
response.headers["Access-Control-Allow-Origin"] = "*"
3636
response.headers["Access-Control-Allow-Methods"] = "GET, POST, PUT, DELETE, OPTIONS, PATCH"
3737
response.headers["Access-Control-Allow-Headers"] = "*"
38-
response.headers["Access-Control-Allow-Credentials"] = "true"
3938
response.headers["Access-Control-Max-Age"] = "3600"
4039
return response
4140

0 commit comments

Comments
 (0)