Skip to content

Instantly share code, notes, and snippets.

@ThomasLocke
Created October 12, 2014 15:15
Show Gist options
  • Save ThomasLocke/8a64b8487e95f4c34555 to your computer and use it in GitHub Desktop.
Save ThomasLocke/8a64b8487e95f4c34555 to your computer and use it in GitHub Desktop.
shelf.middleware.headers.dart
library shelfmiddleware.headers;
import 'dart:io' show HttpHeaders;
const Map<String, String> textHtmlHeader = const {HttpHeaders.CONTENT_TYPE: 'text/html'};
const Map<String, String> CORSHeader = const {'Access-Control-Allow-Origin': '*'};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment