szerhusenBC / jwt-spring-security-demo

A demo for using JWT (Json Web Token) with Spring Security and Spring Boot 2
MIT License
3.04k stars 1.33k forks source link

No 'Access-Control-Allow-Origin' header is present on the requested resource #79

Closed 7carlosz closed 6 years ago

7carlosz commented 6 years ago

No 'Access-Control-Allow-Origin' header is present on the requested resource

kle-pra commented 6 years ago

I don't think CORS request support is/was meant to be implemented, but you can easily add a CORS filter.

Take a look here: https://stackoverflow.com/questions/36809528/spring-boot-cors-filter-cors-preflight-channel-did-not-succeed/36821971?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa

hamdimefteh commented 6 years ago

I do it and i post it .

hamdimefteh commented 6 years ago

https://github.com/szerhusenBC/jwt-spring-security-demo/compare/master...hamdimefteh:patch-1

szerhusenBC commented 6 years ago

@7carlosz does it help you?

szerhusenBC commented 6 years ago

Closing this ticket now.