Skip to content

Commit

Permalink
reverse changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kcinay055679 committed Jul 25, 2023
1 parent fd919cf commit 858f19e
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 15 deletions.
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ group :development, :test do
gem 'launchy'
gem 'mocha'
gem 'pry-byebug'
gem 'rack-cors'
gem 'rails-controller-testing'
gem 'rails-erd'
gem 'rspec-rails'
Expand Down
9 changes: 1 addition & 8 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,7 @@ class Application < Rails::Application
# Configure the default encoding used in templates for Ruby 1.9.
config.encoding = "utf-8"

config.middleware.insert_before 0, Rack::Cors do
allow do
origins 'http://localhost:4200'
resource '/text-security-disc.woff2', headers: :any, methods: [:get, :post]
resource '/text-security-disc-compat.eot', headers: :any, methods: [:get, :post]
resource '/text-security-disc-compat.ttf', headers: :any, methods: [:get, :post]
end
end


# https://stackoverflow.com/questions/72970170/upgrading-to-rails-6-1-6-1-causes-psychdisallowedclass-tried-to-load-unspecif
# https://discuss.rubyonrails.org/t/cve-2022-32224-possible-rce-escalation-bug-with-serialized-columns-in-active-record/81017
Expand Down
3 changes: 0 additions & 3 deletions config/initializers/mime_types.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,3 @@
# Add new mime types for use in respond_to blocks:
# Mime::Type.register "text/richtext", :rtf

Mime::Type.register "font/woff2", :woff2
Mime::Type.register "application/vnd.ms-fontobject", :eot
Mime::Type.register "application/x-font-ttf", :ttf
3 changes: 0 additions & 3 deletions frontend/config/environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ module.exports = function (environment) {
let ENV = {
modulePrefix: "frontend",
environment,
contentSecurityPolicy: {
'font-src': "'self' http://localhost:4200"
},
rootURL: "/",
locationType: "history",
sentryDsn: "",
Expand Down

0 comments on commit 858f19e

Please sign in to comment.