Created
December 9, 2024 04:45
-
-
Save rsyuzyov/3e6837277a12dabb2c11b22781705699 to your computer and use it in GitHub Desktop.
apache cors
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Alias "/testcors" "${SRVROOT}/htdocs/testcors/" | |
| <Directory "${SRVROOT}/htdocs/testcors/"> | |
| AllowOverride All | |
| Options None | |
| Require all granted | |
| SetHandler 1c-application | |
| ManagedApplicationDescriptor "${SRVROOT}/htdocs/testcors/default.vrd" | |
| Options +FollowSymLinks | |
| Header always set Access-Control-Allow-Origin * | |
| Header always set Access-Control-Allow-Credentials true | |
| Header always set Access-Control-Allow-Headers "Origin, Authorization, Accept" | |
| Header always set Access-Control-Allow-Methods "POST, GET, OPTIONS, DELETE, PUT" | |
| Header always set Access-Control-Max-Age "1000" | |
| Header always set Access-Control-Expose-Headers "Content-Security-Policy, Location" | |
| Header merge Vary Origin | |
| RewriteEngine On | |
| RewriteCond %{REQUEST_METHOD} OPTIONS | |
| RewriteRule ^(.*)$ $1 [R=200,L] | |
| </Directory> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment