To continue receiving payouts, you need to secure your account by turning on two-step authentication. If two-step authentication is not turned on your payouts will be paused. Learn more

Missing Authorization key in headers array

aralim11
Shopify Partner
5 0 1

.htaccess.htaccessbuttonbuttonrouterouteerrorerrorI installed an app using Shopify cli. I try to add a route using laravel and view the page from the resource folder. but it shows an error. I also add a .htaccess file in the public folder. how can I solve this issue and create a nav menu? All my attachments are in first comment. 

Reply 1 (1)
ShopifyDevSup
Shopify Staff
Shopify Staff
480 71 119

Hey @aralim11,

I am not a PHP developer, but did locate several recent references to that error on StackOverflow. Though I'm unable to review your app's code, this appears to be most commonly related to authorization, and potentially it's implementation of App Bridge.
 

  • The CLI apps use our official API libraries - eg. Shopify Official PHP Library. The documentation covers covers basic setup and examples for, authorization, session handling, utility methods, and more.
  • We also found a closed issue in the Shopify CLI Github repo that may offer some additional insights on setup for utilizing App Bridge in PHP. 
     

If you are still seeing unexpected results after working through those resources, creating an issue in either repo is likely the best next step. Otherwise, do keep an eye on this thread for any additional input from those more familiar with PHP, and don't hesitate to share additional findings or solutions here as well!

- Cheers!

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog