recently I have accessed to CORS , it seems that three ways to solve this,
1. Use @CrossOrigin
2. Use Configuration Class to add MVC CORS settings,
3. Use properties
management.endpoints.web.cors.allowed-origins='*'
management.endpoints.web.cors.allowed-methods='*'
problem is about the third way, I find it can't to access by using properties,but other two can made it, why would this happen? (When using properties,my allowedOrigin and allowedMethods is '*',using yml) Thanks for your answer
Comment From: wilkinsona
@Jirath-Liu Just for future reference, we prefer that questions such as this are asked on Stack Overflow or Gitter and that the issue tracker is kept for bugs and enhancements.
You haven't described what you were trying to do or what, specifically, isn't working. I suspect that the problem may be that the management.endpoints.web.cors.*
properties only control the CORS configuration for the Actuator's HTTP endpoints and that you were trying to use them to control the CORS configuration is your application's own endpoints.
If you have any further questions, please follow up on Stack Overflow or Gitter.
Comment From: Jirath-Liu
thanks ,and have you ever consider about add properties for the CORS ? it may be easier to configure
Comment From: wilkinsona
We have and we think that using the API provided by Spring MVC is a better alternative as we want to avoid programming by properties.
As I said above, if you have any further questions, please follow up on Stack Overflow or Gitter.