Skip to content

Commit

Permalink
cors https:/usecarmax
Browse files Browse the repository at this point in the history
  • Loading branch information
daria committed Dec 4, 2024
1 parent b011d9f commit e503ca4
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ GEM
logger
faraday-net_http (3.4.0)
net-http (>= 0.5.0)
ffi (1.17.0-x86_64-linux-gnu)
ffi (1.17.0)
globalid (1.2.1)
activesupport (>= 6.1)
gyoku (1.4.0)
Expand Down
2 changes: 1 addition & 1 deletion config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ development:
test:
<<: *default
database: project_auto_test


# As with config/credentials.yml, you never want to store sensitive information,
# like your database password, in your source code. If your source code is
Expand Down
4 changes: 2 additions & 2 deletions config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,6 @@
# Apply autocorrection by RuboCop to files generated by `bin/rails generate`.
# config.generators.apply_rubocop_autocorrect_after_generate!

config.hosts << "usecar.ru"
config.hosts << "www.usecar.ru"
config.hosts << "usecarmax.ru"
config.hosts << "www.usecarmax.ru"
end
4 changes: 2 additions & 2 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,6 @@
# Skip DNS rebinding protection for the default health check endpoint.
# config.host_authorization = { exclude: ->(request) { request.path == "/up" } }

config.hosts << "usecar.ru"
config.hosts << "www.usecar.ru"
config.hosts << "usecarmax.ru"
config.hosts << "www.usecarmax.ru"
end
2 changes: 1 addition & 1 deletion public/.env
Original file line number Diff line number Diff line change
@@ -1 +1 @@
REACT_APP_BASE_URL=https://usecar.ru
REACT_APP_BASE_URL=https://usecarmax.ru
9 changes: 8 additions & 1 deletion public/404.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<!DOCTYPE html>
<html lang="ru">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Expand All @@ -12,14 +13,17 @@
text-align: center;
padding: 50px;
}

h1 {
font-size: 50px;
margin-bottom: 20px;
}

p {
font-size: 20px;
margin-bottom: 30px;
}

a {
text-decoration: none;
color: #fff;
Expand All @@ -28,14 +32,17 @@
border-radius: 5px;
transition: background-color 0.3s;
}

a:hover {
background-color: #0056b3;
}
</style>
</head>

<body>
<h1>404 - Страница не найдена</h1>
<p>К сожалению, запрашиваемая вами страница не существует.</p>
<p>Вы можете вернуться на <a href="https://usecar.ru/">главную страницу</a>.</p>
<p>Вы можете вернуться на <a href="https://usecarmax.ru/">главную страницу</a>.</p>
</body>

</html>
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="UTF-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><title>YouAuto</title><script>window._ab_id_ = 150566;</script><script defer="defer" src="https://cdn.botfaqtor.ru/one.js"></script><link rel="icon" href="/assets/favicon.ico"><script defer="defer" src="/469.73da8cced0fe8503deae.js"></script><script defer="defer" src="/main.25873e1ded672271999e.js"></script><link href="/469.cc3e9d8103445cad502f.css" rel="stylesheet"><link href="/main.823067c18e0f7f94530b.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
<!doctype html><html lang="en"><head><meta charset="UTF-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><title>YouAuto</title><script>window._ab_id_ = 150566;</script><script defer="defer" src="https://cdn.botfaqtor.ru/one.js"></script><link rel="icon" href="/assets/favicon.ico"><script defer="defer" src="/469.73da8cced0fe8503deae.js"></script><script defer="defer" src="/main.9e0cb4628af34d404ea0.js"></script><link href="/469.cc3e9d8103445cad502f.css" rel="stylesheet"><link href="/main.823067c18e0f7f94530b.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
1 change: 1 addition & 0 deletions public/main.3f571d698599e80e1251.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions public/main.9e0cb4628af34d404ea0.js

Large diffs are not rendered by default.

0 comments on commit e503ca4

Please sign in to comment.