Problem

After installing CORS the Single Sign On no longer works :

you are getting the following message after being redirected to the Application

Cross-Origin Resource Sharing (CORS) Filter: CORS origin denied

Solution


Add the URL of the Identity Provider to the CORS Configuration


<!-- ==================== CORS configuration ====================== -->
<filter>
<filter-name>CORS</filter-name>
<filter-class>com.thetransactioncompany.cors.CORSFilter</filter-class>
<init-param>
<param-name>cors.allowOrigin</param-name>
<param-value>https://jira-test.2improveit.eu https://idp.2improveit.eu</param-value> <!-- use http: or https: depending on your configuration -->
</init-param>
<init-param>
<param-name>cors.supportedMethods</param-name>
<param-value>GET, POST, HEAD, OPTIONS, PUT, DELETE</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>CORS</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>


Provide steps that the user can take to solve the problem. For example "The level 7 printer will flash red when it is out of paper. Add paper to tray 1".

You may want to use a panel to highlight important steps.
  1. Use numbered lists to provide step-by-step help.
  2. Copy and paste or drag and drop images to add them to this page.

Related articles

Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.



Related issues