mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 22:42:32 -05:00
add cors headers
This commit is contained in:
1 parent
250889623d
commit
aa3bd24332
2 files changed
+10
No files matched your search
@@ -59,5 +59,13 @@ module Api
|
||||
def current_account
|
||||
current_user&.account
|
||||
end
|
||||
|
||||
def set_cors_headers
|
||||
headers['Access-Control-Allow-Origin'] = '*'
|
||||
headers['Access-Control-Allow-Methods'] = 'POST, GET, PUT, PATCH, DELETE, OPTIONS'
|
||||
headers['Access-Control-Allow-Headers'] = '*'
|
||||
headers['Access-Control-Max-Age'] = '1728000'
|
||||
headers['Access-Control-Allow-Credentials'] = true
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user