manyfold icon indicating copy to clipboard operation
manyfold copied to clipboard

Option to disable CORS

Open Floppy opened this issue 3 months ago • 0 comments

From @coderofsalvation:

(docker?) configuration option to disable CORS completely, because of bug: ModelFile-uri's don't work with remote apps, even with my /usr/src/app/config/initializers/cors.rb

# always allow cors so remote XR viewers can load content 
Rails.application.config.middleware.insert_after Rack::Head, Rack::Cors do
  allow do
    origins '*'
    resource '*', headers: :any, methods: [:get, :options, :head]
  end
end

Some way to disable or customise CORS would be good. Might even be a setting in the site UI perhaps.

Floppy avatar Nov 03 '25 14:11 Floppy