20 lines
724 B
Nginx Configuration File
20 lines
724 B
Nginx Configuration File
|
# ----------------------------------------------------------------------
|
||
|
# | Cross-origin requests |
|
||
|
# ----------------------------------------------------------------------
|
||
|
|
||
|
# Allow cross-origin requests.
|
||
|
#
|
||
|
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS
|
||
|
# https://enable-cors.org/
|
||
|
# https://www.w3.org/TR/cors/
|
||
|
|
||
|
# (!) Do not use this without understanding the consequences.
|
||
|
# This will permit access from any other website.
|
||
|
#
|
||
|
# 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";
|
||
|
|
||
|
add_header Access-Control-Allow-Origin "*";
|