old_contents: from flask import Flask, render_template
  from flask_assets import Bundle, Environment
  from flask_cors import CORS
  from webassets.filter import register_filter
  from webassets_elm import Elm
  
  # create app
  app = Flask('cunhajacaiu')
  app.config.from_object('cunhajacaiu.settings')
  
  # set CORS headers
  CORS(app, resources={r'/api/*': {'origins': '*'}})
  
  # create assets
  register_filter(Elm)
  assets = Environment(app)
  
  css_args = dict(filters=('libsass',),
                  output='css/app.min.css',
                  depends=('**/*.sass',))
  css_bundle = Bundle('sass/app.sass', **css_args)
  assets.register('css', css_bundle)
  
  elm = Bundle('elm/Main.elm', filters=('elm',))
  js_args = dict(filters=('uglifyjs',), output='js/app.min.js')
  js_bundle = Bundle(elm, Bundle('js/app.js'), **js_args)
  assets.register('js', js_bundle)
  
  # add amazon s3 via flask-s3
  if app.config['FLASKS3_BUCKET_NAME'] and not app.debug:
      import flask_s3
      flask_s3.FlaskS3(app)
      flask_s3.create_all(app, filepath_filter_regex=r'^js\/|^css\/|^imgs\/')
  
  
  # home view
  @app.route('/')
  def home():
      return render_template('home.html')
  
new_contents: from flask import Flask, render_template
  from flask_assets import Bundle, Environment
  from webassets.filter import register_filter
  from webassets_elm import Elm
  
  # create app
  app = Flask('cunhajacaiu')
  app.config.from_object('cunhajacaiu.settings')
  
  # create assets
  register_filter(Elm)
  assets = Environment(app)
  
  css_args = dict(filters=('libsass',),
                  output='css/app.min.css',
                  depends=('**/*.sass',))
  css_bundle = Bundle('sass/app.sass', **css_args)
  assets.register('css', css_bundle)
  
  elm = Bundle('elm/Main.elm', filters=('elm',))
  js_args = dict(filters=('uglifyjs',), output='js/app.min.js')
  js_bundle = Bundle(elm, Bundle('js/app.js'), **js_args)
  assets.register('js', js_bundle)
  
  # add amazon s3 via flask-s3
  if app.config['FLASKS3_BUCKET_NAME'] and not app.debug:
      import flask_s3
      flask_s3.FlaskS3(app)
      flask_s3.create_all(app, filepath_filter_regex=r'^js\/|^css\/|^imgs\/')
  
  
  # home view
  @app.route('/')
  def home():
      return render_template('home.html')
  
subject: Remove CORS