add noindex

This commit is contained in:
Pete Matsyburka
2024-04-20 15:47:48 +03:00
parent abbd3e809a
commit e7eb1d4f12
3 changed files with 8 additions and 0 deletions
@@ -66,6 +66,10 @@ module Api
current_user&.account
end
def set_noindex_headers
headers['X-Robots-Tag'] = 'noindex'
end
def set_cors_headers
headers['Access-Control-Allow-Origin'] = '*'
headers['Access-Control-Allow-Methods'] = 'POST, GET, PUT, PATCH, DELETE, OPTIONS'