mirror of
https://github.com/alam00000/bentopdf.git
synced 2026-11-08 16:57:14 +01:00
chore: stop tracking generated build files, fix sponsors workflow and refresh README hero
This commit is contained in:
1 parent
eb6813108a
commit
2f96455896
32 files changed
+41
-37039
No files matched your search
@@ -135,9 +135,9 @@ describe('deployment configs match the generator', () => {
|
||||
expect(headerRuleCsp('serve.json', 'docs/**')).toBe(defaults.docsCsp);
|
||||
});
|
||||
|
||||
it('public/_headers for Netlify and Cloudflare Pages', () => {
|
||||
const file = read('public/_headers');
|
||||
expect(file).toBe(defaults.staticHeaders);
|
||||
it('_headers for Netlify and Cloudflare Pages', () => {
|
||||
const file = defaults.staticHeaders;
|
||||
expect(file).toContain(`/*\n Content-Security-Policy: ${defaults.csp}\n`);
|
||||
expect(file).toContain(
|
||||
`/docs/*\n ! Content-Security-Policy\n Content-Security-Policy: ${defaults.docsCsp}\n`
|
||||
);
|
||||
@@ -147,7 +147,9 @@ describe('deployment configs match the generator', () => {
|
||||
});
|
||||
|
||||
it('nginx docs config and .htaccess', () => {
|
||||
expect(read('security-headers-docs.conf')).toBe(defaults.nginxDocs);
|
||||
expect(defaults.nginxDocs).toContain(
|
||||
`add_header Content-Security-Policy "${defaults.docsCsp}" always;`
|
||||
);
|
||||
expect(read('.htaccess')).toContain(
|
||||
`Header always set Content-Security-Policy "${defaults.csp}"`
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user