discourse/spec/fixtures
Kyle Zhao 488fba3c5f
FEATURE: allow plugins and themes to extend the default CSP (#6704)
* FEATURE: allow plugins and themes to extend the default CSP

For plugins:

```
extend_content_security_policy(
  script_src: ['https://domain.com/script.js', 'https://your-cdn.com/'],
  style_src: ['https://domain.com/style.css']
)
```

For themes and components:

```
extend_content_security_policy:
  type: list
  default: "script_src:https://domain.com/|style_src:https://domain.com"
```

* clear CSP base url before each test

we have a test that stubs `Rails.env.development?` to true

* Only allow extending directives that core includes, for now
2018-11-30 09:51:45 -05:00
..
csv FEATURE: Upload tags from CSV (#6484) 2018-10-15 09:12:54 +01:00
db REFACTOR: use tables instead of custom fields for polls (#6359) 2018-11-19 14:50:00 +01:00
emails FEATURE: If PM email bounced for staged user then alert in whisper reply (#6648) 2018-11-27 00:29:37 +05:30
encodings FIX: Try detecting encoding of RSS feed 2018-08-01 10:41:20 +02:00
feed FIX: Try respecting charset in HTTP header of RSS feed 2018-08-01 10:41:20 +02:00
i18n FIX: async reload of locales could result in missing translations 2018-10-01 17:14:36 +02:00
images FEATURE: do not switch to JPEG unless you meet 75k byte savings 2018-11-21 11:01:08 +11:00
json Replacing default brown category color 2018-08-24 14:18:14 -04:00
md FEATURE: update CommonMark to version 0.28 2018-03-08 12:19:53 +11:00
mmdb UX: Use user locale for locations. (#6527) 2018-10-25 10:54:01 +00:00
multisite Introduce multisite tests for better coverage. 2017-08-08 12:58:22 +09:00
pdf `UploadRecovery` should recover attachments too. 2018-09-19 10:44:36 +08:00
plugins FEATURE: allow plugins and themes to extend the default CSP (#6704) 2018-11-30 09:51:45 -05:00
scss DEV: Run prettier. (#6420) 2018-09-21 11:02:23 +00:00
site_settings FIX: fails loud if default setting is not set 2017-08-15 12:07:25 +02:00
theme_settings FEATURE: introduces list/compact_list components 2018-08-03 16:41:37 -04:00
woff2 FEATURE: support uploads for themes 2017-05-10 15:47:11 -04:00