-
Notifications
You must be signed in to change notification settings - Fork 326
CORS Feature in 8.1.1 #498
Comments
@PhilippS93 So you've configured it like this? graphql.servlet.cors.allowed-origins: "*" |
Exactly, I tried (.yml file):
This should have covered everything. Best, |
And this exact same configuration does work with version 8.0.0? |
On 8.0.0, no configuration was needed. Because of the change in 8.1.0 (CORS), this configuration seems to be mandatory. But it is not working either in 8.1.0 nor 8.1.1. |
Found the problem which will be fixed in next version. That'll contain an upgrade to graphql-java 16.1 too. Could you set the allowed headers in the meantime? graphql.servlet.cors.allowed-headers: GET, HEAD, POST |
Set default cors headers if missing fix #498
I added
and also
but I am still getting |
Sorry my mistake. You should add |
Thanks, that solved it. |
I ran into this same problem and adding |
I have this config and still it doesn't work |
@remo87, I am having problems with this as well, but you might want to try the comma-separated list for allowed methods instead of the YAML array notation. |
i'm having same issue with @remo87 and @hilbertglm. |
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
The CORS feature seems not to work, even when specifying wildcard operator. Seems like
org/springframework/web/cors/CorsConfiguration.java
is callinggetAllowedOrigins()
before the value is initialized bysetAllowedOrigins()
.Expected behavior
CORS settings are are applied
The text was updated successfully, but these errors were encountered: