How to enable CORS on Plesk 11.5?

We host websites on a server with CentOS and Plesk. For one of the sites, we would like to enable CORS for a partner who wants to show specific content from our site on his own website.

How do I get started and does CORS really save? I read a few lessons, but they were distributed to help me.

Again our server information:

Server: CentOS

Administrator Software: Plesk 11.5

CMS: Contao

Our partner only wants to capture content from our site, there is no other interaction (sending data through our site, for example).

Thanks for the help!

+4
source share
1 answer

- " -".

" Apache" " nginx"

, "Access-Control-Allow-Origin" nginx, "add_header", http://nginx.org/en/docs/http/ngx_http_headers_module.html http, .

, " nginx":

add_header Access-Control-Allow-Origin *;

plesk nginx custom headers

+1

All Articles