mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
DEV: enable cors to all cdn get requests from workbox. (#10685)
Now all external requests from the service worker will be in CORS mode without credentials.
This commit is contained in:
parent
f70042860b
commit
e3de45359f
21 changed files with 391 additions and 8 deletions
|
@ -3,6 +3,8 @@
|
|||
class HighlightJsController < ApplicationController
|
||||
skip_before_action :preload_json, :redirect_to_login_if_required, :check_xhr, :verify_authenticity_token, only: [:show]
|
||||
|
||||
cdn_action only: [:show]
|
||||
|
||||
def show
|
||||
|
||||
no_cookies
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue