I'm getting Cross-Origin Request Blocked:
The Same Origin Policy disallows reading the remote resource at http://localhost:8092/authenticate. (Reason: CORS header 'Access-Control-Allow-Origin' missing).
This error occurs while executing an Angular 8 project when I click the login button.
You need to add the Access-Control-Allow-Origin: *
header to the server endpoint (Note: this allows access from anywhere if used in production)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.