fullstack-demo icon indicating copy to clipboard operation
fullstack-demo copied to clipboard

Request header field Authorization is not allowed by Access-Control-Allow-Headers

Open JamesYuan opened this issue 10 years ago • 1 comments

I encounter such errors when request resources from other site.

XMLHttpRequest cannot load http://hp8:8080/rest/test. Request header field Authorization is not allowed by Access-Control-Allow-Headers.

Does it need any settings in express server?

Thanks, James.

JamesYuan avatar Jul 17 '14 01:07 JamesYuan

I have resolved this, add the authorization header in the server side.

JamesYuan avatar Jul 17 '14 05:07 JamesYuan