Skip to content

Skroutz Girls Do Tech base repository

Notifications You must be signed in to change notification settings

PanagiotaPot/GirlsDoTech

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Skroutz Girls Do Tech

Chapter 4: Build Your First App

Σε αυτό το κεφάλαιο, αμέσως μετά το βήμα cd railsgirls και πριν εκτελέσετε την εντολή rails server θα χρειαστεί να αντιγράψετε τις παρακάτω γραμμές στο τέλος του αρχείου projects/railsgirls/config/environments/development.rb ακριβώς πάνω από την εντολή end:

  pf_domain = ENV['GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN']
  config.action_dispatch.default_headers = {
    'X-Frame-Options' => "ALLOW-FROM #{pf_domain}"
  }

  pf_host = "#{ENV['CODESPACE_NAME']}-3000.#{pf_domain}"
  config.hosts << pf_host

  config.action_cable.allowed_request_origins = ["https://#{pf_host}"]
  config.action_controller.allow_forgery_protection = false

All chapters

About

Skroutz Girls Do Tech base repository

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published