Edit middleware configuration to insert cors config before ActionDispatch::Static