mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 14:42:32 -05:00
add security headers
This commit is contained in:
1 parent
7fe56941fd
commit
6806772346
4 files changed
+14
No files matched your search
@@ -102,6 +102,10 @@ module Api
|
||||
headers['X-Robots-Tag'] = 'noindex'
|
||||
end
|
||||
|
||||
def set_security_headers
|
||||
response.headers['X-Content-Type-Options'] = 'nosniff'
|
||||
end
|
||||
|
||||
def set_cors_headers
|
||||
headers['Access-Control-Allow-Origin'] = '*'
|
||||
headers['Access-Control-Allow-Methods'] = 'POST, GET, PUT, PATCH, DELETE, OPTIONS'
|
||||
|
||||
Reference in new issue
Block a user