mirror of
https://github.com/hkalexling/Mango.git
synced 2026-04-04 00:00:51 -04:00
Use sessid and not token and fix get_username
This commit is contained in:
@@ -24,9 +24,15 @@ class Server
|
||||
ReaderRouter.new
|
||||
APIRouter.new
|
||||
|
||||
options "/api/*" do |env|
|
||||
cors
|
||||
halt env
|
||||
{% for path in %w(/api/* /uploads/* /img/*) %}
|
||||
options {{path}} do |env|
|
||||
cors
|
||||
halt env
|
||||
end
|
||||
{% end %}
|
||||
|
||||
static_headers do |response|
|
||||
response.headers.add("Access-Control-Allow-Origin", "*")
|
||||
end
|
||||
|
||||
Kemal.config.logging = false
|
||||
|
||||
Reference in New Issue
Block a user