search cancel

Profile not downloading CORS error

book

Article ID: 203328

calendar_today

Updated On:

Products

CA App Experience Analytics

Issue/Introduction

 

AXA 17.3.2 on a Linux 7.4 systemtrying to inject the snippet.

Both automatic and manual injection has been tried and leads to CORS error,

Reading about the issue and found many ways to fix this (plugins) but the true fix needs to be performed on the actual web application as seen in this link https://www.w3.org/wiki/CORS_Enabled#In_CGI_Scripts.

What is the suggested configuration for AXA?

Environment

Release : 17.3

Component : APP EXPERIENCE ANALYTICS ENGINE

Resolution

 

If CORS (Cross-Origin Requests) errors are visible in F12 browser developer tools, consider adding the following into /aoPlatform/nginx/nginx-1.13.6/nginx.conf - file location {} -brackets. this will allow the page to request resources from the AXA server, or whereever BA.js and other files are hosted and nginx is controlling access.

If another web server is serving the static content, similar settings should be configured on the relevant web server or load balancer

add_header 'Access-Control-Allow-Origin' '*';

add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS, PUT, DELETE';

add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization,X-Axa-Tenant';