ajax - Servers that supports CORS? -


i wonder if there many servers supporting cors?

to make web server support cors, easy making return header.

for example, in apache2, add line applicable conf file:

header set access-control-allow-origin "*"

to more secure (or if don't have access server's conf file) might want not add header in server, add server-side code when want there.

for example in php this: (untested)

<? header('access-control-allow-origin "*"'); ?>


Comments

Popular posts from this blog

delphi - TJvHidDeviceController "DevicePath" always showing "\" -

Disabling Android home button for industry application -

asp.net mvc 3 - Unexpected "foreach" keyword after "@" character -