Created
October 12, 2014 15:15
-
-
Save ThomasLocke/8a64b8487e95f4c34555 to your computer and use it in GitHub Desktop.
shelf.middleware.headers.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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