This pull request simplifies the CORS configuration in the main controller by using the Any parameter for origins, methods, and headers. The changes remove specific origin, method, and header settings and replace them with a more flexible setup using Any. This change reduces code complexity, making the CORS configuration more maintainable and adaptable to various client requests.
Key changes:
Replaced specific origins (localhost and 127.0.0.1) with Any to allow requests from any origin.
Replaced specific allowed methods (POST, DELETE) with Any to permit all HTTP methods.
Replaced specified headers with Any to accept any headers, making the API more accessible.
This update ensures broader compatibility with different clients while simplifying the code.
This pull request simplifies the CORS configuration in the main controller by using the
Any
parameter for origins, methods, and headers. The changes remove specific origin, method, and header settings and replace them with a more flexible setup usingAny
. This change reduces code complexity, making the CORS configuration more maintainable and adaptable to various client requests.Key changes:
localhost
and127.0.0.1
) withAny
to allow requests from any origin.POST
,DELETE
) withAny
to permit all HTTP methods.Any
to accept any headers, making the API more accessible.This update ensures broader compatibility with different clients while simplifying the code.