|
|
|
@ -67,7 +67,7 @@ public class ShopifyAuthTemplateController {
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@GetMapping("/auth/back")
|
|
|
|
|
public RedirectView shopifyStoreAuthRedirect(@RequestParam("code") String code,
|
|
|
|
|
public String shopifyStoreAuthRedirect(@RequestParam("code") String code,
|
|
|
|
|
@RequestParam("hmac") String hmac,
|
|
|
|
|
@RequestParam("host") String host,
|
|
|
|
|
@RequestParam("state") String state,
|
|
|
|
@ -98,7 +98,7 @@ public class ShopifyAuthTemplateController {
|
|
|
|
|
|
|
|
|
|
String redirectUri = PlatformEnvironment.getEnv().concatUrl("/auth.html#/shopify/login?code=" + code + "&hmac=" + hmac + "&host=" + host + "&state=" + state + "&shop=" + shop + "×tamp=" + timestamp);
|
|
|
|
|
response.setHeader("content-security-policy", "frame-ancestors https://" + shop + ".myshopify.com https://admin.shopify.com");
|
|
|
|
|
return new RedirectView(redirectUri);
|
|
|
|
|
return "redirect:" + redirectUri;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|