Added CORS headers for yaml file

This commit is contained in:
Frank Schubert
2022-09-14 15:02:38 +02:00
parent c40f30e56f
commit 9dbe01fb29

View File

@@ -1 +1,6 @@
SetEnvIf Origin "^(https://docs.thetool.xinon.at|https://editor.swagger.io|.*abstellgleis.at)$" AccessControlAllowOrigin=$0
Header add Access-Control-Allow-Origin %{AccessControlAllowOrigin}e env=AccessControlAllowOrigin
Header add Access-Control-Allow-Methods: "GET,POST,OPTIONS"
Header add Access-Control-Allow-Headers: "X-Api-Key"
Header add Cach-control: "no-store, no-cache, must-revalidate"