Comparing version 1.0.0 to 1.0.1
@@ -7,2 +7,8 @@ # Change Log | ||
## 1.0.1 | ||
_2020-03-18_ | ||
- fix: Allow cross origin requests for fonts | ||
## 1.0.0 | ||
@@ -12,3 +18,4 @@ | ||
- **BREAKING** feat: Un-scope `pkg.name` - prepare for open publishing | ||
- **BREAKING** Rename + un-scope package as `cssserve`, prep for open | ||
publication | ||
- **BREAKING** feat: Change the `index.html` and `_NotFound_.html` server | ||
@@ -15,0 +22,0 @@ settings |
{ | ||
"name": "cssserve", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"license": "MIT", | ||
@@ -9,2 +9,3 @@ "dependencies": { | ||
"fastify-compress": "^2.0.1", | ||
"fastify-cors": "^3.0.2", | ||
"fastify-static": "^2.6.0", | ||
@@ -11,0 +12,0 @@ "glob": "^7.1.6", |
@@ -9,2 +9,3 @@ #!/usr/bin/env node | ||
var fastifyStatic = _interopDefault(require('fastify-static')); | ||
var fastifyCors = _interopDefault(require('fastify-cors')); | ||
var fs = require('fs'); | ||
@@ -514,2 +515,6 @@ var glob = require('glob'); | ||
} | ||
app.register(fastifyCors, { | ||
origin: true, | ||
methods: ['GET'], | ||
}); | ||
app.register(fastifyStatic, { | ||
@@ -516,0 +521,0 @@ root: path.resolve(staticFolder$1), |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26750
503
8
+ Addedfastify-cors@^3.0.2
+ Addedfastify-cors@3.0.3(transitive)