File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 138
138
< cfsetting enablecfoutputonly = " true" / >
139
139
< cfcontent reset = " true" type = " #application ._taffy .settings .mimeExtensions [_taffyRequest .returnMimeExt ] #" / >
140
140
< cfheader statuscode = " #_taffyRequest .resultStatus #" / >
141
+ < cfif application ._taffy .settings .allowCrossDomain >
142
+ < cfheader name = " Access-Control-Allow-Origin" value = " *" / >
143
+ < / cfif >
141
144
< cfif not structIsEmpty (_taffyRequest .resultHeaders )>
142
145
< cfloop collection = " #_taffyRequest .resultHeaders #" item = " _taffyRequest.headerName" >
143
146
< cfheader name = " #_taffyRequest .headerName #" value = " #_taffyRequest .resultHeaders [_taffyRequest .headerName ] #" / >
172
175
< cfset application ._taffy .settings .dashboardKey = " dashboard" / >
173
176
< cfset application ._taffy .settings .disableDashboard = false / >
174
177
< cfset application ._taffy .settings .unhandledPaths = " /flex2gateway" / >
178
+ < cfset application ._taffy .settings .allowCrossDomain = false / >
175
179
<!--- allow setting overrides --->
176
180
< cfset configureTaffy ()/ >
177
181
<!--- translate unhandledPaths config to regex for easier matching (This is ripped off from FW/1. Thanks, Sean!) --->
580
584
< / cfif >
581
585
< / cffunction >
582
586
587
+ < cffunction name = " enableCrossDomainAccess" access = " public" output = " false" returntype = " void" >
588
+ < cfargument name = " enabled" type = " boolean" default = " true" / >
589
+ < cfset application ._taffy .settings .allowCrossDomain = arguments .enabled / >
590
+ < / cffunction >
591
+
583
592
< cfif NOT isDefined (" getComponentMetadata" )>
584
593
< cffunction name = " tmp" >
585
594
< cfreturn getMetaData (createObject (" component" ,arguments [1 ])) / >
You can’t perform that action at this time.
0 commit comments