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

Commit 858f19e

Browse files
committed
reverse changes
1 parent fd919cf commit 858f19e

4 files changed

Lines changed: 1 addition & 15 deletions

File tree

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'

config/application.rb

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,7 @@ 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
70+
7871

7972
# https://stackoverflow.com/questions/72970170/upgrading-to-rails-6-1-6-1-causes-psychdisallowedclass-tried-to-load-unspecif
8073
# https://discuss.rubyonrails.org/t/cve-2022-32224-possible-rce-escalation-bug-with-serialized-columns-in-active-record/81017

config/initializers/mime_types.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,3 @@
33
# Add new mime types for use in respond_to blocks:
44
# Mime::Type.register "text/richtext", :rtf
55

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)