Add CORS to API endpoints

This commit is contained in:
Omar Roth
2019-02-02 22:48:47 -06:00
parent 87e1fa0a28
commit d0a690c303
2 changed files with 13 additions and 0 deletions

View File

@@ -3977,6 +3977,7 @@ public_folder "assets"
Kemal.config.powered_by_header = false
add_handler FilteredCompressHandler.new
add_handler DenyFrame.new
add_handler APIHandler.new
add_context_storage_type(User)
Kemal.config.logger = logger