How to add "Access-Control-Allow-Origin" header in REST api response

Alan Wu asked on July 15, 2014 16:22

Hi everyone!

I am working on Kentico 8 to create a publicly accessible REST api. Just wondering if there's a way to set "Access-Control-Allow-Origin" header in server response header.

Thanks Alan

Correct Answer

Brendan McKenzie answered on July 17, 2014 07:01

You can do this directly in IIS. You don't need to configure it in Kentico.

See here:

2 votesVote for this answer Unmark Correct answer

   Please, sign in to be able to submit a new answer.