Can the url-pattern in a servlet filter-mapping point to a servlet in another domain?
<filter>
<filter-name>CORSFilter</filter-name>
<filter-class>com.example.CORSFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>CORSFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
In the url-pattern putting /* would make this filter apply to all servlets in the application. Is there a way to apply filter for servlets in another domain/application? If so, what is the url pattern I should use.
I tried putting the full path to the domain name and servlet, but an error was thrown and my application didn't start up.