We have a mashup that displays a simple section with the count of cases a user has.
We want this to be accessed by anyone, so there’s an Anonymous authentication service and a model user with no Portal configured, when I run the Mashup code on Firefox, it works fine, but when I run it on Chrome, instead of showing the Mashup section it shows the PEGA login screen.
In Pega web mashup, optimize incorporate mashup content into website it is adhere to pega’s best practises:
Ensure that your mashup displays as intended by not using the nosniff setting.
The nosniff response header prevents Google Chrome and Internet Explorer from trying to mime-sniff the content-type of a response away from the content-type that the server declares.
So, in order to troubleshoot the issue ;
nosniff parameter in the following sample code breaks the mashup functionality:
@Junicavi
please note if your application is built on Constellation UI then anonymous authentication is not supported
And since you said this works fine in browser like fire fox and not is chrome This might be because of the content type option of those browser.
please refer the below document that states the best practice for using web mashup Best practices for using mashups | Pega
and as per point number “8” browser like chrome and EE will not support content type of nosniff
To change this please check the HTTP response DSS value Creating a custom HTTP response header | Pega in your system
Thank you !
@Manojkumar_ J I’ve set the DSS with the provided code, but still getting the login screen when I run the mashup on Chrome and Edge, only Firefox works.
@Junicavi This is the issue with the same site cookie attribute probably
please check the CSRF same site cookie configuration and try setting the attribute value to “None”
Thank you !