Skip to content
This repository was archived by the owner on Dec 18, 2025. It is now read-only.

Commit 208932e

Browse files
committed
reverse changes
1 parent fd919cf commit 208932e

File tree

5 files changed

+0
-20
lines changed

5 files changed

+0
-20
lines changed

Gemfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ group :development, :test do
3434
gem 'launchy'
3535
gem 'mocha'
3636
gem 'pry-byebug'
37-
gem 'rack-cors'
3837
gem 'rails-controller-testing'
3938
gem 'rails-erd'
4039
gem 'rspec-rails'

Gemfile.lock

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,6 @@ GEM
214214
activesupport (>= 3.0.0)
215215
racc (1.7.1)
216216
rack (2.2.7)
217-
rack-cors (2.0.1)
218-
rack (>= 2.0.0)
219217
rack-oauth2 (1.21.3)
220218
activesupport
221219
attr_required
@@ -397,7 +395,6 @@ DEPENDENCIES
397395
pry-stack_explorer
398396
puma
399397
pundit
400-
rack-cors
401398
rails (~> 7.0)
402399
rails-controller-testing
403400
rails-erd

config/application.rb

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,6 @@ class Application < Rails::Application
6767
# Configure the default encoding used in templates for Ruby 1.9.
6868
config.encoding = "utf-8"
6969

70-
config.middleware.insert_before 0, Rack::Cors do
71-
allow do
72-
origins 'http://localhost:4200'
73-
resource '/text-security-disc.woff2', headers: :any, methods: [:get, :post]
74-
resource '/text-security-disc-compat.eot', headers: :any, methods: [:get, :post]
75-
resource '/text-security-disc-compat.ttf', headers: :any, methods: [:get, :post]
76-
end
77-
end
78-
7970
# https://stackoverflow.com/questions/72970170/upgrading-to-rails-6-1-6-1-causes-psychdisallowedclass-tried-to-load-unspecif
8071
# https://discuss.rubyonrails.org/t/cve-2022-32224-possible-rce-escalation-bug-with-serialized-columns-in-active-record/81017
8172
config.after_initialize do

config/initializers/mime_types.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,3 @@
22

33
# Add new mime types for use in respond_to blocks:
44
# Mime::Type.register "text/richtext", :rtf
5-
6-
Mime::Type.register "font/woff2", :woff2
7-
Mime::Type.register "application/vnd.ms-fontobject", :eot
8-
Mime::Type.register "application/x-font-ttf", :ttf

frontend/config/environment.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ module.exports = function (environment) {
44
let ENV = {
55
modulePrefix: "frontend",
66
environment,
7-
contentSecurityPolicy: {
8-
'font-src': "'self' http://localhost:4200"
9-
},
107
rootURL: "/",
118
locationType: "history",
129
sentryDsn: "",

0 commit comments

Comments
 (0)