2014-04-08 12:13:29 +02:00
|
|
|
# Cross domain AJAX requests
|
|
|
|
|
2018-11-23 13:15:44 +01:00
|
|
|
# https://www.w3.org/TR/cors/#access-control-allow-origin-response-header
|
2015-05-29 15:32:23 +02:00
|
|
|
|
2014-04-08 12:13:29 +02:00
|
|
|
# **Security Warning**
|
2014-06-26 19:55:57 +02:00
|
|
|
# Do not use this without understanding the consequences.
|
2014-04-08 12:13:29 +02:00
|
|
|
# This will permit access from any other website.
|
|
|
|
#
|
|
|
|
add_header "Access-Control-Allow-Origin" "*";
|
|
|
|
|
|
|
|
# Instead of using this file, consider using a specific rule such as:
|
|
|
|
#
|
|
|
|
# Allow access based on [sub]domain:
|
|
|
|
# add_header "Access-Control-Allow-Origin" "subdomain.example.com";
|