You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@kamilmysliwiec Actually the guide you just linked show a cors option in the GraphQLModule but this one is not available anymore. I guess it's what @rhutchison is referencing.
Great catch @magrinj! I just removed the entire GraphQL-related section - cors option has been removed in Apollo v4 (which is great since we didn't need that either way) and everyone should now be able to just use the enableCors() method - regardless of whether they build a GQL or REST API
Great catch @magrinj! I just removed the entire GraphQL-related section - cors option has been removed in Apollo v4 (which is great since we didn't need that either way) and everyone should now be able to just use the enableCors() method - regardless of whether they build a GQL or REST API
Did you read the migration guide?
Is there an existing issue that is already proposing this?
Potential Commit/PR that introduced the regression
PR #2636
Versions
10.2.0 -> 11.0.4
Describe the regression
Support for configuring CORs was removed.
It looks like the changes to support new apollo server was done as suggested in the guide:
951f907#diff-c3a3b52cf11536118537eaffe950a721dd8246bde13d7681c96678d85bec445fR159
then later removed:
1e099fa#diff-c3a3b52cf11536118537eaffe950a721dd8246bde13d7681c96678d85bec445fL144
Minimum reproduction code
Expected behavior
From the documentation:
The startStandaloneServer function's CORS configuration is unalterable and enables any website on the internet to tell a user's browser to connect to your server. Depending on your use case, you might need to further customize your CORS behavior to ensure your server's security.
Other
No response
The text was updated successfully, but these errors were encountered: