We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The below code about CORS does not generate Access-Control-* header in response. That will lead to get httpstatus -1 if request error.
@CrossOrigin
addCorsMappings(CorsRegistry registry)
WebMvcConfigurerAdapter
@Configuration @EnableWebMvc public class WebConfig extends WebMvcConfigurerAdapter { @Override public void addCorsMappings(CorsRegistry registry) { registry.addMapping("/**"); } }
The text was updated successfully, but these errors were encountered:
References:
Solution:
No 'Access-Control-Allow-Origin' header is present on the requested resource
Sorry, something went wrong.
see commit
No branches or pull requests
The below code about CORS does not generate Access-Control-* header in response. That will lead to get httpstatus -1 if request error.
@CrossOrigin
addCorsMappings(CorsRegistry registry)
method inWebMvcConfigurerAdapter
class.The text was updated successfully, but these errors were encountered: