mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-27 06:19:23 -05:00
Just say yes to OPTIONS requests, since we want to turn on CORS headers for all paths
This commit is contained in:
parent
f99168de06
commit
4add1c70e9
@ -96,6 +96,11 @@ class TwistedHttpServer(HttpServer, resource.Resource):
|
||||
path.
|
||||
"""
|
||||
try:
|
||||
# Just say yes to OPTIONS.
|
||||
if request.method == "OPTIONS":
|
||||
self._send_response(request, 200, {})
|
||||
return
|
||||
|
||||
# Loop through all the registered callbacks to check if the method
|
||||
# and path regex match
|
||||
for path_entry in self.path_regexs.get(request.method, []):
|
||||
|
Loading…
Reference in New Issue
Block a user