cpprestsdk icon indicating copy to clipboard operation
cpprestsdk copied to clipboard

add a known header "access-control-allow-origin into http_constants.dat

Open jsonng opened this issue 10 years ago • 1 comments

simple change: DAT(access_control_allow_origin, "Access-Control-Allow-Origin")

This is needed for some simple response, where I am building my own http_response with the following code: response.headers().add(U("Access-Control-Allow-Origin"), "*");

however, it would be ideal to use a predefined repsonse header so that people don't have to hard code this.

jsonng avatar Apr 17 '16 04:04 jsonng

I second this. I may look into adding this myself and putting another pull request for it.

drearyworlds avatar Apr 20 '16 22:04 drearyworlds