server-configs-nginx/h5bp/directive-only/cross-domain-insecure.conf

15 lines
465 B
Nginx Configuration File
Raw Normal View History

# Cross domain AJAX requests
2018-11-23 13:15:44 +01:00
# https://www.w3.org/TR/cors/#access-control-allow-origin-response-header
# **Security Warning**
# Do not use this without understanding the consequences.
# 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";